Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
163 B
2
Indexable
Never
#include <iostream>

using namespace std;

int main()
{
   int sum = 0;
   for(int i=1;i<500;i++){
       if(i%2==0)
       sum+=i;
   }
cout<<sum;
    return 0;
}