#include <stdio.h>
int main(void) {
int num;
for(num = 1; num < 10; num++) {
if(num == 5) break;
printf("%3d", num);
}
putchar('\n');
for(num = 1; num < 10; num++) {
if(num == 5) continue;
printf("%3d", num);
}
return 0;
}
while ( 조건식 ) {
s1;
if( ) { continue; }
s2;
}
int numl
scanf("%d", &num);
if (num < 0) goto LB1;
else goto LB2;
LB1:
printf( ... );
. . .
LB2:
printf( ... );
. . .
[TIL] 5 - 1. 연산자 - 연산자 우선순위 (0) | 2022.03.16 |
---|---|
[TIL] 4 - 2. 제어문의 이해 - 다중 for와 do ~ while의 이해 (0) | 2022.03.16 |
[TIL] 4 - 1. 제어문의 이해 - switch ~ case문의 이해 (0) | 2022.03.16 |
[TIL] 3 - 2. 표준 입출력 함수 - scanf( ) (0) | 2022.03.03 |
[TIL] 3 - 1. 표준 입출력 함수 - printf( ) (0) | 2022.03.03 |
댓글 영역