• + 0 comments
    T = int(input().strip())
    for i in range(T):
        try:
            a, b = input().strip().split()
            result = int(int(a) / int(b))
        except ZeroDivisionError as e:
            print(f"Error Code: integer division or modulo by zero")
        except ValueError as ve:
            print(f"Error Code: {ve}")
        else:
            print(result)