c++ builder?
i am trying to compute the largest value possible from a series using this function
if(sum>sum1)
{
sum1=sum;
}
however, when i output the value it shows all answers that are greater than the previous. how can i programme it to simply output the greatest overall answer?
|