Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while(0<1):
- money = int(input("ใส่จำนวนเงินที่ต้องการ:"))
- if money >= 100 and money <= 20000:
- print("1000 บาท:",money//1000 )
- money = money % 1000;
- print("500 บาท:",money //500 )
- money = money % 500;
- print("100 บาท:",money //100 )
- money = money % 100;
- else:
- print("จำนวนเงินที่ต้องการต้องมากกว่า 99 และต่ำกว่า 20,000")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement