#include "stdio.h"
#include "conio.h"
void main()
{
int sum1=0,sum2=0,i;
clrscr();
for(i=1;i<=100;i++)
if (i%2==0) sum1+=i; else sum2+=i;
printf("Odd Value: 1+3+5+7+9+11+…+99=%d\n",sum2);
printf("Even Value: 2+4+6+8+10+12+…+100=%d\n",sum1);
getch();
}