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;
- using System.Threading.Tasks;
- namespace Matrix_gyak1
- {
- class Program
- {
- static void Main(string[] args)
- {
- int i, j;
- int[,] m = new int[10, 10];
- Random rnd = new Random();
- for (i = 0; i < 10; i++)
- {
- for (j = 0; j < 10; j++)
- m[i, j] = rnd.Next(1, 6);
- }
- for (i = 0; i < 10; i++)
- {
- for (j = 0; j < 10; j++)
- Console.Write(m[i, j] + "\t");
- Console.WriteLine();
- }
- Console.WriteLine();
- Console.ReadKey();
- Console.Clear();
- // innentől, ha kérhetem :D
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment