Есть ответ 👍

решить.
До 28 декабря.

154
194
Посмотреть ответы 1

Ответы на вопрос:


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);

        }

    }

}

Популярно: Информатика