Write a program in C++ to display the below pattern with n rows, where n is in the range between 1 and 100. The variable n should be entered by the user. If the user input is between 1 and 100 then...


Write a program in C++ to display the below pattern with

n
 rows, where
n
 is in the range between 1 and 100. The variable
n
 should be entered by the user. If the user input is between 1 and 100 then output the pyramid as given below, otherwise prompt the user to enter
n
 again.


//asking a user to enter input of number of rows:



Enter the number of rows: 6



1


2   3


3   4   5


4   5   6   7


5   6   7   8   9


6   7   8   9   10   11



Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here