|All-time Popular Problems|
|Maximum difference between node and its ancestor|
|Count nodes of linked list|
|Find first set bit|
|Angle between hour and minute hand|
|Recursively remove all adjacent duplicates|
|Remove every k'th node|
|Merge Two Sorted Arrays|
|Spirally traversing a matrix|
|Merge two sorted linked lists|
|Longest Increasing Subsequence|
Given two numbers A and B. Perform addition, subtraction, division and multiplication on these two numbers and display result in a new line.
Input: First line of the input contains an integer T which denotes the number of test cases. Then T test cases follow. Each test case contains a single line containing two space separated integers A and B.
Output: There should be four lines of output for each test case. Description of the 4 lines is shown below:
First Line: Result of addition of the two numbers
Second Line: Result of subtracting the smaller number from the greater number.
Third Line: Result of dividing greater number by the smaller number (Result will be in integer)
Fourth Line: Result of multiplication of the two numbers.
1 <= T< = 100