Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int[,] array = new int[6, 6];
- // Заполняем единички
- for (int x = 0; x < 6; x++)
- {
- array[x, 0] = rando.Next(0, 2);
- }
- for (int y = 0; y < 6; y++)
- {
- array[0, y] = rando.Next(0, 2);
- }
- // Выводим массив
- for (int y = 0; y < 6; y++)
- {
- for (int x = 0; x < 6; x++)
- {
- Console.Write(array[x, y] + " ");
- }
- Console.WriteLine();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement