#include
#include
main()
{
int i=1,sum=0,k=0;
do{
sum+=i;
i++;
}while(i<=100);
int j=1;
do{
k+=j;
j+=3;
}while(j<=31);
printf("%d %d",sum,k);
return 0;
}
int main()
{ int i=1,sum=0;
do
{ sum += i++;
//printf("i = %d, sum = %d\n",i,sum);
} while (i<=100);
printf("sum = %d\n",sum);
return 0;
}