Study/code up
[codeup] 1077 : [기초-반복실행구조] 정수 한 개 입력받아 그 수까지 출력하기
1nfra
2019. 7. 23. 04:41
728x90
1 2 3 4 5 6 7 8 9 10 | #include <stdio.h> int main() { int a, b; scanf("%d", &a); for (b = 0; b <= a; b++) { printf("%d\n", b); } return 0; } | cs |
728x90