Question: Write a C + + program to print numbers in a triangle format. Input an integer H which represents the height of the triangle. By

Write a C++ program to print numbers in a triangle format. Input an integer H which represents the height of the triangle. By using nested loops, output numbers to form the triangle in the console.
Sample inputs / outputs:
Enter helght of the triangle : 11
Enter height of the triangle : 2
1
12
Enter height of the triangle: 3
1122
Enter height of the triangle : 4
12
123
1234
 Write a C++ program to print numbers in a triangle format.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!