Do Some Math

Description

Most of your problems have been related to input and output. You know that's not all to computers. Let's move onto some math and such.

Input

The data file will contain an integer, NN, following by NN data sets. Each data set has two numbers.

Output

For each test case, output the sum, difference, product, and quotient of the numbers, with the formatting seen below. Round to 1 decimal place for each number. Insert blank lines between data sets.

Sample Input

3
20 5
12 4
15 3

Sample Output

20.0 + 5.0 = 25.0
20.0 - 5.0 = 15.0
20.0 * 5.0 = 100.0
20.0 / 5.0 = 4.0

12.0 + 4.0 = 16.0
12.0 - 4.0 = 8.0
12.0 * 4.0 = 48.0
12.0 / 4.0 = 3.0

15.0 + 3.0 = 18.0
15.0 - 3.0 = 12.0
15.0 * 3.0 = 45.0
15.0 / 3.0 = 5.0

results matching ""

    No results matching ""