Question: plz i need the algorethem , it is c++ programming , i need the code . Write a program that prompts the user for a
plz i need the algorethem , it is c++ programming , i need the code . 
Write a program that prompts the user for a positive number. The program then prints the pattern given below. Sample Run: Enter number of rows: 5 The number pattern is: 0 1 2 3 4 1 0 1 2 3 2 1 0 1 2 3 2 1 0 1 4 3 2 1 0 Process returned 0 (0 times 0) execution time: 1.390 s Press any key to continue. Enter number of rows: 7 The number pattern is: 0 1 2 3 4 5 6 1 0 1 2 3 4 5 2 1 0 1 2 3 4 3 2 1 0 1 2 3 4 3 2 1 6 1 2 5 4 3 2 1 0 1 6 5 4 3 2 1 0 Process returned 0 (0 times 0) execution time: 0.646 s Press any key to continue
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
