Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2020
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. #problema 4
  2. 4 operatii
  3.  
  4. x = float(input())
  5. y = float(input())
  6. print(f'{x:.2f} + {y:.2f} = {(x + y):.2f}')
  7. print(f'{x:.2f} - {y:.2f} = {(x - y):.2f}')
  8. print(f'{x:.2f} * {y:.2f} = {(x * y):.2f}')
  9. print(f'{x:.2f} / {y:.2f} = {(x / y):.2f}')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement