Gyakorlás
This commit is contained in:
30
Tombok2/Tomb2d/Program.cs
Normal file
30
Tombok2/Tomb2d/Program.cs
Normal 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
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
10
Tombok2/Tomb2d/Tomb2d.csproj
Normal file
10
Tombok2/Tomb2d/Tomb2d.csproj
Normal 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>
|
||||
Reference in New Issue
Block a user