Compound intrest and simple intrest

t=int(input("enter the time in years "))

P=int(input("enter the principal amount in $ "))

r=float(input("Enter Intrest Rate  "))

C=round(P*(1+r/100)**t)

S=P+(P*r*t)/100

print("simple intrest is ${}".format(S))

print("the Compound intrest gained is ${} ".format(C))