Computer Science, asked by vedanthkumar24, 9 months ago

c)Design a class to overload a function pattern() as follows: i)void pattern(String s):to display the following if s= “MODERN” M O D E R N
M O D E R
M O D E
M O D
M O
M ii)void pattern(int n):to display the following if n=5
1
1 2
1 2 1
1 2 1 2
1 21 2 1

Answers

Answered by anshikapal68
0

Answer:

Suggestions:

Make sure that all words are spelled correctly.

Try different keywords.

Try more general keywords.

Try fewer keywords.

Similar questions