WAQBP to print simple interest and amount using Input Statement.
Answers
Answered by
3
p, r, t = [float(n) for n in input("enter p, r, t: ").split( )]
i = p * (r / 100) * t
print(f"simple interest: {i:.2f}\n amount: {p + i:.2f}")
Answered by
3
Answer:
p, r, t = [float(n) for n in input("enter p, r, t: ").split( )]
i = p * (r / 100) * t
print(f"simple interest: {i:.2f}\n amount: {p + i:.2f}")
Similar questions