0

Code for following pattern

1*2*3*4*17*18*19*20 5*6*7*14*15*16 8*9*12*13 10*11

2nd Mar 2020, 3:44 PM
Mounika Rasaputra
Mounika Rasaputra - avatar
2 Respuestas
+ 1
: Take 3 loops, Min=0, number of spaces to print, From 2nd loop, i=0, < n=4, print numbers, i++; From 3rd loop, max=20, j=n, repeat for Print max-j, j--, Max=max-n, n--, min++, Repeat until n=0. Try this way..
2nd Mar 2020, 6:01 PM
Jayakrishna 🇮🇳