By Roberto A. Costa Jr, UNIFEI Brazil
Your teacher would like to make a program with the following characteristics:
The input consists of several test files. Each test file has two rows. In the first line there are two real numbers A and B (-1000.0 ≤ A, B ≤ 1000.0), separated by white space. In the second line there are two real numbers C and D (-1000.0 ≤ C, D ≤ 1000.0), separated by white space. As shown in the following input example.
For each file in the input, you have an output file. The output file has twelve rows as described in item 7 and 8. As shown in the following output example.
Input Samples | Output Samples |
1.2 3.45 3.451 3.4516 |
A = 1.200000, B = 3.450000 C = 3.451000, D = 3.451600 A = 1.2, B = 3.5 C = 3.5, D = 3.5 A = 1.20, B = 3.45 C = 3.45, D = 3.45 A = 1.200, B = 3.450 C = 3.451, D = 3.452 A = 1.200E+00, B = 3.450E+00 C = 3.451E+00, D = 3.452E+00 A = 1, B = 3 C = 3, D = 3 |
2127.9 -821.45 -1020.456 1352.4548 |
A = 2127.899902, B = -821.450012 C = -1020.456000, D = 1352.454800 A = 2127.9, B = -821.5 C = -1020.5, D = 1352.5 A = 2127.90, B = -821.45 C = -1020.46, D = 1352.45 A = 2127.900, B = -821.450 C = -1020.456, D = 1352.455 A = 2.128E+03, B = -8.215E+02 C = -1.020E+03, D = 1.352E+03 A = 2128, B = -821 C = -1020, D = 1352 |