Given two integers (positive , negative or even 0) say a and b. Find the max value of a$b where $ is any arithmetic operation like multiply(*), Divide(/), Addition(+),Substraction(-). Use Exception Handling in this problem.
The first line will contain an integer T (number of test cases). Each test case will contain two integers a and b.
Print the max value of a$b.
1 < = T < = 100
In test case 1: 5-(-5) = 10
In test case 2: 4/0 = Infinite
If you have purchased any course from GeeksforGeeks then please ask your doubt on course discussion forum. You will get quick replies from GFG Moderators there.