http://codeup.kr/problem.php?id=1253
Codeup 1253 - a부터 b까지 출력하기
xa, b = input().split()a = int(a)b = int(b)if(a > b): for i in range(b, a+1): print(i, end=' ')else: for i in range(a, b+1): print(i, end=' ')
'알고리즘 문제 풀기 > Codeup' 카테고리의 다른 글
| Codeup 1255 - 두 실수 사이 출력하기 (0) | 2019.01.02 |
|---|---|
| Codeup 1254 - 알파벳 출력하기 (0) | 2019.01.02 |
| Codeup 1252 - 1 부터 n 가지 출력하기 (0) | 2019.01.01 |
| Codeup 1251 - 1 부터 100까지 출력하기 (0) | 2019.01.01 |
| Codeup 1231 - 계산기 1 (0) | 2019.01.01 |