write a menu driven program for the following:
To display the following pattern:
1 2 3 4 #
1 2 3 # 5
1 2 # 4 5
1 # 3 4 5
# 2 3 4 5
Answers
Answered by
0
Answer:
Using the switch statement, write a menu driven program for the following:
(a) To print the Floyd's triangle:
1
2 3
4 5 6
7 8 9 10
11 12 13 14 15
(b) To display the following pattern:
I
I C
I C S
I C S E
For an incorrect option, an appropriate error message should be displayed.
Similar questions