Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace ConsoleApp1
- {
- class Program
- {
- static void Main()
- {
- Random rnd = new Random();
- int[,] array = new int[rnd.Next(0, 100000), rnd.Next(0, 100000)];
- for (int k = 0; k < array.GetLength(0); k++)
- {
- for (int l = 0; l < array.GetLength(1); l++)
- {
- array[k, l] = rnd.Next();
- Console.ForegroundColor = (ConsoleColor)rnd.Next(0, 14);
- Console.Write("[{0}, {1}] = {2}", k, l, array[k, l]);
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment