fork download
  1. income = int(input("Enter the annual income (rupiah): "))
  2.  
  3. tax1 = min(income, 60000000) * 0.05
  4. tax2 = max(min(income, 250000000) - 60000000, 0) * 0.15
  5. tax3 = max(income - 250000000, 0) * 0.25
  6.  
  7. total_tax = tax1 + tax2 + tax3
  8.  
  9. print("Th total Mr. Mik has to pay is Rp" + str(int(total_tax)))
Success #stdin #stdout 0.07s 14184KB
stdin
400000000
stdout
Enter the annual income (rupiah): Th total Mr. Mik has to pay is Rp69000000