lundi 7 décembre 2020

I want to print a random array in a function (It is also ok if it is not in function) in C#. How can I do?

static void array() {

            //1dimensional
            string[] a = new string[4];
            string[] one_one = { "X" };
            string[] one_two = { "X", "X" };
            string[] one_three = { "X", "X", "X" };
            ////2dimensional
            string[,] one_four = { { "X", "X" }, { "X", "X" } };
            string[,] two_two = { { "X" }, { "X" } };
            string[,] two_three = { { "X" }, { "X" }, { "X" } };
            
            
        }

In there i want to print random array with using random command.
Im new at using functions so I don't have much idea
If it is possible to solve it without "functions" too, I will be glad if you help, thanks




Aucun commentaire:

Enregistrer un commentaire