Advertisement
Guest User

Untitled

a guest
Oct 17th, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. Rp=int(input("Ketik nilai Rp ="))
  2. R=Rp
  3. J=R//1000000
  4. R=R%1000000
  5. S=R//100000
  6. R=R%100000
  7. L=R//50000
  8. R=R%50000
  9. D=R//20000
  10. R=R%20000
  11. C=R//10000
  12. R=R%10000
  13. G=R//5000
  14. R=R%5000
  15. print(Rp," Rp = ",J," Jutaan + ",S," Ratusan + ",L," Lima Puluh + ",D," Dua Puluh + ",C," Ceban + ",G," Goceng + ",R," Rp " )
  16. HASIL RUN
  17. Ketik nilai Rp =1150555
  18. 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