#include<iostream>
using namespace std;
int main()
{
int suma=0;
for(int i=0;i<100;i++)
if(i%2==0)
suma+=i;
}
cout << suma;
return 0;
" Life is not a problem to be solved but a reality to be experienced! "
© Copyright 2013 - 2025 KUDO.TIPS - All rights reserved.
#include<iostream>
using namespace std;
int main()
{
int suma=0;
for(int i=0;i<100;i++)
{
if(i%2==0)
{
suma+=i;
}
}
cout << suma;
return 0;
}