DerioFT

1116.py

Oct 26th, 2021
880
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.19 KB | None | 0 0
  1. N = int(input())
  2.  
  3. for data in range(N):
  4.  
  5.     X, Y = input().split()
  6.     X, Y = int(X), int(Y)
  7.  
  8.     if Y == 0:
  9.         print("divisao impossivel")
  10.  
  11.     else:
  12.         result = X / Y
  13.         print("%0.1f" % result)
Advertisement
Add Comment
Please, Sign In to add comment