Есть ответ 👍

)C++ Дан текст. Определите количество цифр в нем. 2)Вывести на экран числа в виде следующей таблицы:
41 42 ... 50
51 52 ... 60
61 62 ... 70
71 72 ... 80
C++ ​

156
416
Посмотреть ответы 1

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

retul
4,4(98 оценок)

Using system; using system.collections.generic; using system.linq; using system.text; namespace consoleapplication5 {       class program       {               static void main(string[] args)               {                       int m, n;                       console.writeline("введите число m");                       m = int.parse(console.;                       console.writeline("введите число m");                       n = int.parse(console.;                       int[,] mass = new int[m, n];                       int max = 0;                       for (int i = 0; i < m; i++)                       {                               for (int j = 0; j < n; j++)                               {                                       console.writeline("введите (" + i + "; " + j + ")-ый элемент");                                       mass[i, j] = int.parse(console.;                                       if (i == 0 & & j == 0)                                               max = mass[i, j];                                       else                                       {                                               if (mass[i, j] > max)                                                       max = mass[i, j];                                       }                               }                       }                       console.writeline("maксимальный элемент равен " + max);                       console.readkey();               }       } }

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