Files
asztali_12/Tombok2/Tomb2d/Program.cs
2026-09-09 14:52:24 +02:00

30 lines
758 B
C#

namespace Tomb2d
{
internal class Program
{
static void Main(string[] args)
{
int[,] tomb2d = new int[10, 12];
Random random = new Random();
for (int i = 0; i < tomb2d.GetLength(0); i++)
{
for (int j = 0; j < tomb2d.GetLength(1); j++)
{
tomb2d[i, j] = random.Next(10, 100);
}
}
for (int i = 0; i < tomb2d.GetLength(0); i++)
{
for (int j = 0; j < tomb2d.GetLength(1); j++)
{
Console.Write(tomb2d[i, j]+" ");
}
Console.WriteLine();
}
//összeg, min max
}
}
}