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 :
Post a Comment
No comments:
Post a Comment