#include "stdio.h"
void main()
{
int i,sum=0;
for(i=1;i<=100;i++)
if(i%2)
sum+=i;
printf("%d\n",sum);
}
#include "stdio.h"
void main()
{
int i=1,sum=0;
while(i<=100)
{ if(i%2)
sum+=i;
i++;
}
printf("%d\n",sum);
}
#include "stdio.h"
void main()
{
int i=1,sum=0;
do
{ if(i%2)
sum+=i;
i++;
}while(i<=100);
printf("%d\n",sum);
}