Ответы на вопрос:
using system;
using system.collections.generic;
using system.linq;
using system.text.regularexpressions;
namespace math
{
public class program
{
public static void main(string[] args)
{
bool yes=true;
string s = "";
int q = 0;
int m, n;
console.writeline("введите m: ");
m = int.parse(console.;
console.writeline("введите n: ");
n = int.parse(console.;
int[,] m = new int[m,n];
for (int i = 0; i < m; i++)
{
for (int j = 0; j < n; j++)
{
console.write("[{0},{1}] : ",i,j);
m[i, j] = int.parse(console.;
s += m[i, j] + "\t";
if (yes & m[i, 0] ! = m[i, j]) yes = false;
}
if (yes) q++;
s += "\n";
yes = true;
}
console.writeline(s+"\nответ : "+q+" строк");
console.readkey(true);
}
}
}
Популярно: Информатика
-
SuperWalker04.08.2022 01:35
-
f0kYsss26.04.2023 20:50
-
LeraAlfeeva1523.02.2022 03:26
-
hiraslife24.01.2022 14:27
-
лера2109115.04.2022 17:00
-
Наташа251129.09.2021 13:43
-
Грамотейка117.07.2022 17:41
-
Nanami33429.06.2023 00:35
-
рубін27.09.2020 14:11
-
nikadidok09.03.2021 20:34