Gyakorlás

This commit is contained in:
lego
2026-09-09 14:52:24 +02:00
parent aed00c3b52
commit 4fc7a99164
12 changed files with 248 additions and 0 deletions

30
Tombok2/Tomb2d/Program.cs Normal file
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
}
}
}

View File

@@ -0,0 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net7.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
</Project>