• + 0 comments
    n = int(input()) 
    for i in range(n):
     try:
         a, b = input().split() 
         r = int(a) // int(b)
         print(r) 
     except ZeroDivisionError as e:
         print("Error Code: integer division or modulo by zero") 
     except ValueError as v:
         print("Error Code:", v)