.Write a program to generate a triangle or an inverted triangle till n terms based
upon the user’s choice of triangle to be displayed.
Example 1
Input: Type 1 for triangle and
Type 2 for inverted triangle
Output:
1
22
333
4444
55555
example 2
Input: Type 1 for triangle and
Type 2 for inverted triangle
Output:
666666
55555
4444
333
22
1
Answers
Answered by
0
Answer:
ask you're teacher understand that
Similar questions