Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save JuniorMSG/c73cbfe357a620780fc22cc4af5ae593 to your computer and use it in GitHub Desktop.
Save JuniorMSG/c73cbfe357a620780fc22cc4af5ae593 to your computer and use it in GitHub Desktop.
/***
* 구구단 출력
***/
def Q_2739():
dan = int(input())
for i in range(1, 10):
print(dan, "*", i, "=", dan*i)
/***
* 자연수 N이 주어졌을 때, N부터 1까지 한 줄에 하나씩 출력하는 프로그램을 작성하시오.
***/
def Q_2742_02():
    n = int(input())
    print("\n".join(map(str, range(n, 0, -1))))
    return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment