Question: Write a C++ program which prints squareroot (x + y) for all combinations of x = 7, 8, 9, .., 17 and y = 12,

Write a C++ program which prints squareroot (x + y) for all combinations of x = 7, 8, 9, .., 17 and y = 12, 13, 14, .., 26. In particular, the code will compute squareroot (7+12), squareroot (7+13), squareroot (7+14), .., squareroot (7+26), squareroot (8+12), squareroot (8+13), etc. Format the output so that the real numbers after "is" (see output below) display three digits after the decimal place. Use loop(s) to receive full credit. Do not use arrays nor vectors. The first three lines of output will be: squareroot (7 + 12 = 19) is 4.359 squareroot (7 + 13 = 20) is 4.472 squareroot (7 + 14 = 21) is 4.583 The last three lines of output will be: squareroot (17 + 24 = 41) is 6.403 squareroot (17 + 25 = 42) is 6.481 squareroot (17 + 26 = 43) is 6.557 Write your solution in the main procedure provided below. #include #include #include using namespace std: int main() {/* insert your solution below */ return 0: }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
