gowtham900

Untitled

Sep 19th, 2021
945
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.25 KB | None | 0 0
  1. def transaction(x,total):
  2.     while x>=0 and total>=5.50:
  3.         if x%5==0:
  4.         result=total-x-0.50
  5.             print(f"{result}")
  6.         else:
  7.             print(f"{x}")
  8. x,total=list(map(float,input().split()))
  9. print(transaction(x,total))
Advertisement
Add Comment
Please, Sign In to add comment