-
September 5th, 2012, 03:40 AM
#1
i'm stuck HELP, thanks
i want to write a function that can add only -ve numbers from a list of integers. i can declare a function that can add the negative numbers, my problem is how do i get the -ve numbers from a string of both +ve and -ve numbers
int SumOfNumbers(int a, int b){
int result;
result = a+b;
return (result);
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|