Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- namespace ConsoleApplication1
- {
- class Program
- {
- static void Main(string[] args)
- {
- int[,] matrix = new int[10, 10];
- Random elem = new Random();
- int cv1, cv2;
- for(cv1=0;cv1<=9;cv1++)
- {
- for (cv2 = 0; cv2 <= 9; cv2++)
- {
- matrix[cv1, cv2] = elem.Next(1, 10);
- }
- }
- for (cv1 = 0; cv1 <= 9; cv1++)
- {
- for (cv2 = 0; cv2 <= 9; cv2++)
- {
- Console.Write("{0} ", matrix[cv1, cv2]);
- }
- Console.WriteLine("");
- }
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement