Traditional Culture Encyclopedia - Traditional festivals - Sum of all even numbers up to 100, please draw a flowchart

Sum of all even numbers up to 100, please draw a flowchart

The flowchart is very simple, so I won't draw it. The program is also very simple. #include <iostream>

using namespace std;

#define N 100

int main()

{

long sum=0;

for (int i=0;i< ;=N;i+=2)

{

sum+=i;

}

cout<< "The sum of all even numbers between 0 and "<<<N<< "is :"<<sum<<endl;

return 0;< /p>

}