gowtham900

Untitled

Sep 19th, 2021
687
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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))
RAW Paste Data