Jagged arrays Code coach | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Jagged arrays Code coach

I'm really confused again... In the lesson Jagged arrays in the coad coach. I want you to read what code coach asks and then ready my code : string Nhr = olympiad[0][day1Winner]; string Nhra = olympiad[1][day2Winner]; string Nhrb = olympiad[2][day3Winner]; Console.WriteLine(Nhr); Console.WriteLine(Nhra); Console.WriteLine(Nhrb); Tells me, what's wrong?? It doesn't output the right names.

16th Dec 2023, 9:14 AM
♨⚠DabTop Grid⚠♨
♨⚠DabTop Grid⚠♨ - avatar
1 Answer
+ 1
it's one less. ... day1Winner-1, etc
16th Dec 2023, 11:07 AM
Bob_Li
Bob_Li - avatar