1번
1 #include <stdio.h>
2 main()
3 {
4 int i=0,sum=0;
5
6 do{
7 if(i%2==0)
8 sum = sum + i;
9 i++;
10 }while(i<=100);
11 printf("%d \n",sum);
12 }
13
-----------------------------------------------------------------
1 #include <stdio.h>
2 main()
3 {
4 int i=0,sum=0;
5
6 do{
7 if(i%2==0)
8 sum = sum + i;
9 i++;
10 }while(i<=100);
11 printf("%d \n",sum);
12 }
13
-----------------------------------------------------------------