+ 1
Is it possible ? Fill 2D array with loop like this
1 2 3 4 8 7 6 5 9 10 11 12
6 Respuestas
+ 2
Haseeb Shahzad you shouldn't implement it that way ,like defining explicitly values for the array indexes ,it should all be implicit when the array size scales like arr[5][6] ,then what will you do ?
Here is how I did it ,not sure it is the best optimized way but still hope it helps
https://code.sololearn.com/cBUHK5oTMe6t/?ref=app
+ 4
Can you share your attempt?
+ 1
Abhay thanks ♥️♥️
0
Without initialization and cin statement
0
My attempt I do with function
https://code.sololearn.com/c6GMi7OqY67M/?ref=app