알고리즘 예제/Python

[Python] - Coding Test / 6071 문제

KimTory 2022. 3. 6. 19:32

✍ CodeUp 문제  / 출처 : Codeup

👉 Input

7 4 2 3 0 1 5 6 9 10 8

 

👉 Output

7 4 2 3

 

👉 Source Code

n = int(input())

while n != 0:
	print(n)
    n = int(input())