Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Rp=int(input("Ketik nilai Rp ="))
- R=Rp
- J=R//1000000
- R=R%1000000
- S=R//100000
- R=R%100000
- L=R//50000
- R=R%50000
- D=R//20000
- R=R%20000
- C=R//10000
- R=R%10000
- G=R//5000
- R=R%5000
- print(Rp," Rp = ",J," Jutaan + ",S," Ratusan + ",L," Lima Puluh + ",D," Dua Puluh + ",C," Ceban + ",G," Goceng + ",R," Rp " )
- HASIL RUN
- Ketik nilai Rp =1150555
- 1150555 Rp = 1 Jutaan + 1 Ratusan + 1 Lima Puluh + 0 Dua Puluh + 0 Ceban + 0 Goceng + 555 Rp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement