Write a c++ program to receive one integer value 'num' from user such that the number is greater than 0 but less than 10. Then draw a triangle on screen such that there is one number in first row, two...


Write a c++ program to receive one integer value 'num' from user such that the number is greater than 0 but less than 10. Then draw a triangle on screen such that there is one number in first row, two in second, three in third and so on in an increasing fashion until num rows are printed.


For example if the user inputs 5, the output pattern is:



1


2   3


4   5  6


7   8  9 10


11 12 13 14 15



Jun 02, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here