Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as C# by Ozy ( 13 years ago )
using System;
namespace Lab6
{
class Program
{
static void Main(string[] args)
{
int M = int.Parse(Console.ReadLine());
int N = int.Parse(Console.ReadLine());
int[,] array1 = new int[M, N];
for (int i = 0; i < M; i++)
{
for (int j = 0; j < N; j++)
{
array1[i, j] = int.Parse(Console.ReadLine());
}
}
int k = int.Parse(Console.ReadLine());
if (k <= 1 && k >= N)
{
k = int.Parse(Console.ReadLine());
}
for (int i = 0; i < M; i++)
{
Console.WriteLine("{0}", array1[i, k - 1]);
}
Console.ReadLine();
}
}
}
Revise this Paste