SHARE
TWEET

matrix_rendezes

a guest Dec 8th, 2018 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace Matrix_gyak1
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.            int i, j;
  14.             int[,] m = new int[10, 10];
  15.             Random rnd = new Random();
  16.  
  17.             for (i = 0; i < 10; i++)
  18.             {
  19.                 for (j = 0; j < 10; j++)
  20.                     m[i, j] = rnd.Next(1, 6);
  21.             }
  22.  
  23.             for (i = 0; i < 10; i++)
  24.             {
  25.                 for (j = 0; j < 10; j++)
  26.                     Console.Write(m[i, j] + "\t");
  27.                 Console.WriteLine();
  28.             }
  29.             Console.WriteLine();
  30.  
  31.  
  32.             Console.ReadKey();
  33.             Console.Clear();
  34.  
  35.             // innentől, ha kérhetem :D
  36.            
  37.             Console.ReadKey();
  38.  
  39.         }
  40.     }
  41. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top