To Get Certification, Click Here: bitly.ws/P9Up Use coupon "KZbin12" to get ‘’FLAT 12%’’ OFF at Checkout.
@BroCodeFan4 ай бұрын
// Thema's en teams string[] themaRondes = { "Sport", "Cultuur", "Politiek" }; int aantalTeams = 4; string[] teamNamen = new string[aantalTeams]; int[,] scores = new int[aantalTeams, themaRondes.Length]; // Namen en scores invoeren for (int i = 0; i < aantalTeams; i++) { Console.Write($"Voer de naam in van team {i + 1}: "); teamNamen[i] = Console.ReadLine(); for (int j = 0; j < themaRondes.Length; j++) { Console.Write($"{teamNamen[i]}, {themaRondes[j]} score: "); scores[i, j] = int.Parse(Console.ReadLine()); } } // Winnaars per ronde bepalen for (int j = 0; j < themaRondes.Length; j++) { int hoogsteScore = -1; string winnaar = ""; for (int i = 0; i < aantalTeams; i++) { if (scores[i, j] > hoogsteScore) { hoogsteScore = scores[i, j]; winnaar = teamNamen[i]; } } Console.WriteLine($" Winnaar van de {themaRondes[j]} ronde is: {winnaar} met {hoogsteScore} punten."); }
@FeeDeeX465 жыл бұрын
Thank you, you're amazing explaining, greetings from Argentina
@sajidmushfikrahman40855 жыл бұрын
Array are part of "Reference Type". Which store the reference on----stack values in ---heaps **Array has size which is static.
@Squidley326 жыл бұрын
Thanks so much for this video, very clear and helpful, this saved my homework assignment
@basudevkhanal109 Жыл бұрын
you lazy😫
@trueindian21082 жыл бұрын
Really nice and informative video.
@samparab775 жыл бұрын
Thank you so much to clear the Concept of array with examples
@BroCodeFan4 ай бұрын
// Thema's en teams string[] themaRondes = { "Sport", "Cultuur", "Politiek" }; int aantalTeams = 4; string[] teamNamen = new string[aantalTeams]; int[,] scores = new int[aantalTeams, themaRondes.Length]; // Namen en scores invoeren for (int i = 0; i < aantalTeams; i++) { Console.Write($"Voer de naam in van team {i + 1}: "); teamNamen[i] = Console.ReadLine(); for (int j = 0; j < themaRondes.Length; j++) { Console.Write($"{teamNamen[i]}, {themaRondes[j]} score: "); scores[i, j] = int.Parse(Console.ReadLine()); } } // Winnaars per ronde bepalen for (int j = 0; j < themaRondes.Length; j++) { int hoogsteScore = -1; string winnaar = ""; for (int i = 0; i < aantalTeams; i++) { if (scores[i, j] > hoogsteScore) { hoogsteScore = scores[i, j]; winnaar = teamNamen[i]; } } Console.WriteLine($" Winnaar van de {themaRondes[j]} ronde is: {winnaar} met {hoogsteScore} punten."); }
@IndritVaka3 жыл бұрын
Thanks, man, it's very helpful
@abdulraufkhan58586 жыл бұрын
sir why are we using .length when we store the value from user
@deanpotter66546 жыл бұрын
That's not what happened. The .Length property was used to establish how many times the for loop needed to run, based on the length of the array that he defined. Whatever number the user input had to be checked whether it occurred in his predefined array. If it matched one of the elements, then the bool is set to true and finally an if statement printed the appropriate message based on the state of the bool.
@MxolisiHuey2 жыл бұрын
I love this
@KarthikMumadi3 жыл бұрын
please give runtime examples as well
@MiaTheDreamer3 жыл бұрын
Thank you 😊
@eitan32154 жыл бұрын
Thanks a lot
@selvapriya41154 жыл бұрын
how we use INPTR in cPP ???
@WaqasAhmed-om8ph6 жыл бұрын
i want to store array value from user , how can i store?