134p~135p입니다 <해결좀 해보고싶읍니다 >

coffee=10
while True:
money=int(input("돈을 넣어주세요"))
if money==300:
print("커피를 줍니다")
coffee=coffee-1
elif money > 300:
print("거스름돈 %d를 주고 커피를 줍니다 "%(money-300))
coffee=coffee-1
else:
money=int(input("돈을 넣어주세요 "))
if money==100:
print("돈을 다시돌려주고 커피를 주지않읍니다 ")
print("남은 커피의양은 %d개입니다 ."%coffee)
if coffee==0:
print("커피가 다 떨어졌읍니다 판매를 중지합니다 ")
break

Python 3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 22:22:05) [MSC v.1916 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license()" for more information.

=== RESTART: C:/Users/win/AppData/Local/Programs/Python/Python37/hello.py ===
돈을 넣어주세요

centos 393

2020년 11월 7일 7:12 오후

목록으로