Question: Write a C# program to generate and store random lists like 1000 or 0010 as an element of 2D array called myarray such that first
Write a C# program to generate and store random lists like "1000" or "0010" as an element of 2D array called "myarray" such that first column is the list and the 2nd column is the corresponding list number.
for example,
var myarray = new string [5, 2]
{
{"1000", "1"},
{"0100", "2"},
{"0010", "3"},
{"1100", "4"},
{"1010", "5"}
};
And then retrieve the odd integers list numbers( list number 1, 3, 5) in the 2nd column from "myarray" and print their corresponding list of "1000", "0010" and "1010" from the 1st column of 2D array in the Console.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
