p=float(input("enter principle"))
t=float(input("enter time"))
r=float(input("enter rate"))
si=(p*t*r)/100
print(si)
//comp
p=int(raw_input("enter principle"))
t=int(raw_input("enter time"))
r=int(raw_input("enter rate"))
ci=p*(1+r)**t
print(ci)
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter