#!/usr/bin/python3 print("Enter the principal: ") principal = float(input()) print("Enter the interest rate: ") rate = float(input()) print("Enter the time: ") time = float(input()) interest = principal * rate * time payment = principal + interest print("Principal: $%.2f" % principal) print("Rate: %.2f%%" % (rate*100) ) print("Time: ", time, "years") print("Interest: $%.2f"% interest) print("Payment: $%.2f"% payment)