My issue
okay i am failing on the input
1
12
my output is 10
expected output is 90, How?
My code
def amtReturned(x):
rem = x%10
if rem <5:
amt = 10* (x//10)
else :
amt = 10 *(x//10) +10
print(amt)
t = int(input())
for i in range(t):
cost = int(input())
amtReturned(cost)
Learning course: Number theory
Problem Link: CodeChef: Practical coding for everyone