Study/code up
[codeup] 1073 : [기초-반복실행구조] 0 입력될 때까지 무한 출력하기2
1nfra
2019. 7. 23. 04:37
728x90
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | #include <stdio.h> int main() { int i; reload: scanf("%d", &i); if (i == 0) goto finish; printf("%d\n", i); if (i != 0) goto reload; finish: printf("0\n"); return 0; } | cs |
728x90