ok so i clearly am an idiot and did missed a letter when re typing the function and thats why it wasnt working for me.... sigh.... thanks for the help tho
I don't understand the problem...
int NumberOfPositiveRoots(root1, root2)
{
int counter = 0;
if (root1 >= 0)
{
counter++;
}
if (root2 >= 0)
counter++;
}
return counter;
}
Reputation Points: 10
Solved Threads: 1
Junior Poster in Training
Offline 80 posts
since Oct 2009