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
1 Réponse
+ 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..