Pruthvi Patel

Pruthvi Patel

  • NA
  • 12
  • 5.4k

Convert one dimensional array in to two dimensional array.

Nov 23 2016 11:24 AM
arr1={1,2,3,4,5,6,7,8}  //1,2,3....n
if col=2 and row=4 then 
arr2[,]=
 
1   2
3   4
5   6
7   8
likewise
Please answer this
Thanks 

Answers (1)