Computer Science, asked by mansiagrawal56, 19 days ago

Write a menu driven program to accept a number ( as number of line) then print the Triangle Pattern or Print inverted triangle pattern according to the number of line.
If user choice = 1 ( means Print triangle)
input number of line = 4
Then output will be display like this:
1
4 4
9 9 9
16 16 16 16
If user choice = 2 ( means Print Inverted triangle)
input number of line = 5
Then output will be display like this:
5 5 5 5 5
4 4 4 4
3 3 3
2 2
1
If user choice = 3 then print invalid choice:​

Answers

Answered by ranbeerst123
1

Answer:

RR you want me to come back from a few minutes late and you know that I'm a good night baby I love u more and then you can get the money I can see you tomorrow night

Similar questions