fork download
  1. # SID/Name : Alika Siti Almubdi
  2. # Date : 28/9/2026
  3. # Description : Problem 3
  4.  
  5. income = int(input("Enter the annual income (rupiah): "))
  6.  
  7. tax1 = min(income, 60000000) * 0.05
  8. tax2 = max(min(income, 250000000) - 60000000, 0) * 0.15
  9. tax3 = max(income - 250000000, 0) * 0.25
  10.  
  11. total_tax = tax1 + tax2 + tax3
  12.  
  13. print("Th total Mr. Mik has to pay is Rp" + str(int(total_tax)))
Success #stdin #stdout 0.07s 14192KB
stdin
50000000
stdout
Enter the annual income (rupiah): Th total Mr. Mik has to pay is Rp2500000