0
Arrays - How do I do this? I am completely stuck on 44.2 Practice
8 Answers
+ 3
https://code.sololearn.com/cYBzNKBgB6VF/?ref=app
+ 2
Omg I get it now, thank you, that was so tidy and easy to understand :)
0
Only pro members can access this code coach. Better if you share with us the question
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();
}
}
}
}
}
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
0
Do you need to print the elements of the array on each line? Is that what the question asks for?
0
Yes :)
0
You're Welcome :)