#include <stdio.h>
int main() {
int i;
for(i=1;i<=10;i++){ //선언, 조건, 증감
//실행할 명령어
printf("%d\n", i);
}
for(i=1;i<11;i+=2){
printf("%d\n", i);
}
for(i=10;i>=1;i-=2){
printf("%d\n", i);
}
int sum = 0;
for(i=1;i<=30;i+=2){
sum += i;
}
printf("%d\n", sum);
for(i=1;i<=9;i++){
printf("%d x %d = %d\n", 2, i, 2*i);
}
}
To embed this project on your website, copy the following code and paste it into your website's HTML: