Gyakorlás

This commit is contained in:
lego committed 2026-09-09 14:52:24 +02:00
1 parent aed00c3b52
commit 4fc7a99164
12 files changed
+248

No files matched your search

+30
View File
@@ -0,0 +1,30 @@
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
}
}
}