#include <stdio.h>
int main() {
/*
int i;
for(i=1;i<=10;i++){
printf("%d", i);
}
i = 1;
while(i<11){
printf("%d", i);
i++;
}
printf("\n");
i = 10;
while(i >= 1){
printf("%d", i);
i--;
}
printf("\n");
i = 5;
while(i<=20){
printf("%d\n", i);
i++;
}
i = 1;
while(i<=10){
printf("%d\n", i);
i+=2;
}
*/
//조건이 거짓일때
int i = 1;
do{
printf("hello %d\n", i);
i++;
}while(i>=10);
//조건이 참일 때
i = 1;
do{
printf("hello %d\n", i);
i++;
}while(i<=10);
i = 10;
while(i>=1){
printf("%d ", i);
i-=2;
}
i=10;
do{
printf("%d ", i);
i-=2;
}while(i>=1);
}
To embed this project on your website, copy the following code and paste it into your website's HTML: