Study/code up
[codeup] 1072 : [기초-반복실행구조] 정수 입력받아 계속 출력하기
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 a, b; scanf("%d", &a); reload: scanf("%d", &b); printf("%d\n", b); if (--a != 0) { goto reload; } return 0; } | cs |
728x90