C# How to Print 2 arrays together -
ok, lets have 2 arrays these;
int[] wow = new int[50]; (int j = 0; j < wow.length; j++) { wow[j] = j + 1; } int[] wew = new int[50]; (int = 0; < wew.length; i++) { wew[i] = + 10; }
and want print them like;
1 , 11 2 , 12 3 , 13
for (int j = 0; j < wow.length; j++) { wow1[j] = j + 1; wow2[j] = j + 10; //print wow1 & wow2 here. console.writeline("{0},{1}", wow1[j], wow2[j]); }
note in 2 loops, no different j, same!
Comments
Post a Comment