30 lines
758 B
C#
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
|
|
|
|
}
|
|
}
|
|
} |