0

How to get this pattern for user input n ?

Say, accept n=4 then 1*2*3*4 \n 9*10*11*12\n 13*14*15*16\n 5*6*7*8 and for n=3 1*2*3 7*8*9 4*5*6

11th Jul 2017, 1:42 AM
Vishvaradhya Minchanal
Vishvaradhya Minchanal - avatar
1 Respuesta
+ 1
Which line ordering do you expect for n=5 or higher?
16th Jul 2017, 12:25 AM
Victor Pfautz