prin = float(input("Enter Principal: ")) rate = float(input("Enter Rate: ")) time = float(input("Enter Time (years): ")) amt = prin * math.pow((1 + rate/100), time) ci = amt - prin print("Compound Interest =", ci)