Работа двумерного массива - C#
Формулировка задачи:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
int t, i;
int n = 1;
int[,] array = new int[3, 4];
for (t = 0; t < 3; t++)
{
for (i = 0; i < 4; i++)
{
array[t, i] =n++;
Console.Write(array[t, i] + " ");
}
Console.WriteLine();
Console.ReadLine();
}
}
}
}Решение задачи: «Работа двумерного массива»
textual
Листинг программы
table[t,i] = (t*4)+i+1;