Monday, December 10, 2007

How to use summation

How to use summation

To use summation

#include

int main ()

{

int summation=0;

for (int num=2; num<=100 ; num += 2 )

summation += num;

cout << " The sum of the following number is : "<<>

return 0;

}

Result :

No comments: