June is Combung

Up & Down 게임[1단계] 본문

python/조건문

Up & Down 게임[1단계]

june__Park 2021. 2. 16. 21:52
# Up & Down 게임[1단계]
# 1. com은 8이다.
# 2. me는 com의 숫자를 맞추는 게임이다.
# 3. 다음과 같은 메세지를 출력한다.
# 1) me < com   : Up!
# 2) me == com  : Bingo!
# 3) me > com   : Down!

com = 8

me = int(input("숫자를 입력하세요 : "))

if me < com:
    print("Up!")
if me == com:
    print("Bingo!")
if me > com:
    print("Down!")

'python > 조건문' 카테고리의 다른 글

로그인[2단계]  (0) 2021.02.16
로그인[1단계]  (0) 2021.02.16
가위 바위 보[1단계]  (0) 2021.02.16
조건문[문제]  (0) 2021.02.16
조건문  (0) 2021.02.16
Comments