0

Arrays - How do I do this? I am completely stuck on 44.2 Practice

https://sololearn.com/coach/722/?ref=app

30th Mar 2021, 6:04 AM
Matt Gisby
Matt Gisby - avatar
8 odpowiedzi
+ 3
https://code.sololearn.com/cYBzNKBgB6VF/?ref=app
30th Mar 2021, 6:20 AM
Soumik
Soumik - avatar
+ 2
Omg I get it now, thank you, that was so tidy and easy to understand :)
30th Mar 2021, 6:24 AM
Matt Gisby
Matt Gisby - avatar
0
Only pro members can access this code coach. Better if you share with us the question
30th Mar 2021, 6:08 AM
Soumik
Soumik - avatar
0
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SoloLearn { class Program { static void Main(string[] args) { int[,] num = { { 1, 2, 3 }, { 4, 5, 6 }, { 7, 8, 9 } }; //your code goes here for (int i = 0; i < 1; i++) { for (int j = 0; j < 2; j++) { for (int k = 0; k < 3; k++) { Console.Write("{0}",num[j, k]); } Console.WriteLine(); } } } } }
30th Mar 2021, 6:09 AM
Matt Gisby
Matt Gisby - avatar
0
Thats what ive got working so far, but the 7,8,9 part doesnt get written to console. My brain is just melting away with these arrays lol When I add i to the console write it doesnt work
30th Mar 2021, 6:10 AM
Matt Gisby
Matt Gisby - avatar
0
Do you need to print the elements of the array on each line? Is that what the question asks for?
30th Mar 2021, 6:12 AM
Soumik
Soumik - avatar
0
Yes :)
30th Mar 2021, 6:13 AM
Matt Gisby
Matt Gisby - avatar
0
You're Welcome :)
30th Mar 2021, 6:24 AM
Soumik
Soumik - avatar