GUVI
Back

code kata problem

Created 3 mons ago
Codekata
27 Views
3 Comments
kreetykishore
@kreetykishore
Followers
Following
Posts
kreetykishore
@kreetykishoreProfile is locked. Login

You are given with Principle amount($), Interest Rate(%) and Time (years) in that order. Find Simple Interest.

Print the output up to two decimal places (Round-off if necessary).

(S.I. = P*T*R/100)

Input Description:
Three values are given to you as the input. these values correspond to Principle amount, Interest Rate and Time in that particular order.

Output Description:
Find the Simple interest and print it up to two decimal places. Round off if required.

please give the correct syntax

my solution works fine in other compilers

pa = int(input())

i = int(input())

t = int(input())

si = int((pa*i*t)/100)

print("%.2f" %si)

Sample Input :
1000 2 5
Sample Output :
100.00
Comments (3)
Please login to comment.
 
Habitate.io