- 4

Can anyone help me out how to print the following pattern

Here's the sample I/p and o/p Input 5 6 Output 55555 25252 16161 15151 13131 99999

8th May 2020, 4:39 PM
sai kumar
sai kumar - avatar
1 Odpowiedź
0
Hey Mr.adrit it's not garbage values,if u observe the input it is taken 5 as columns and 6 as rows And then initially it takes 5 and printed 5 for five times and then by adding them 25 will be printed for five times and so on for 6 times as the second number is 6
8th May 2020, 4:50 PM
sai kumar
sai kumar - avatar