--------------------------------------------------------------------
# Enter your code here. Read input from STDIN. Print output to STDOUT
import math
metal_cost=float(input())
tip=int(input())
tax=int(input())
tip=metal_cost*tip/100
tax=metal_cost*tax/100
total=metal_cost+tip+tax
total=round(total)
print "The total meal cost is %d dollars." % total
--------------------------------------------------------------------
# Enter your code here. Read input from STDIN. Print output to STDOUT
import math
metal_cost=float(input())
tip=int(input())
tax=int(input())
tip=metal_cost*tip/100
tax=metal_cost*tax/100
total=metal_cost+tip+tax
total=round(total)
print "The total meal cost is %d dollars." % total
--------------------------------------------------------------------
No comments:
Post a Comment