28. Write a menu driven-program to print the given pattern as per user's choice.
1. void Pattern1 (int r, int c) // where r indicates number of rows and e indicates
number of columns. If let r=5 and c=5
12345
0000
345
00
2. void Pattern2 (int n, char ch)//where n is size of the given square pattern and ch
is the character to be displayed. Let n=4 and ch=&
&&&&
&&&&
&&&&
&&&&
PLZ ANYONE HELP ME OUT WITH THIS *JAVA PROGRAM*......IT IS VERY URGENT... DAY AFTER TOMORROW IS MY EXAM...... PROVIDE ME THE CORRECT ANSWER WITH EXPLANATION....PLZZZZ
Answers
Answered by
1
Answer:
Input : n = 4
Output :
1
3*2
4*5*6
10*9*8*7
Input : n = 5
Output :
1
3*2
4*5*6
10*9*8*7
11*12*13*14*15
Similar questions