withdraw=int(input('จำนวนเงนิ ท่ี ตอ้ งกำร:'))#withdrawคอื ตัวเเปร b1000=withdraw//1000 #//หำรตอ้ งกำร จำนวนเต็ม remain=withdraw%1000 #% หำรตอ้ งกำรเศษ,remain b500=remain//500 remain=remain%500 b1000=remain//100 print(f'ธนบตั รท่ี ได:้ \\nB1000={b1000}\\nB500={b500}\\nB 100={b100}')
Search
Read the Text Version
- 1 - 4
Pages: