#include <stdafx.h>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <locale.h>
#define N 5
int main() {
setlocale(LC_ALL, "Russian");
int arrey[5][10]={{1,2,3,4,5},{6,7,8,9,10},{11,12,13,14,15},{16,17,18,19,20},{21,22,23,24,25}};
int a = arrey[0][0], b;
for(int j = 0; j < 5; j++)
{
for(int i = 0; i < 10 ; i++){
printf ( "%d\t" ,arrey[j][i]);
}
printf("\n");
}
printf("\n\n");
for (int t=0; t < N; t++)
{
if (arrey [t][t] >= a)
{
a=arrey[t][t];
b=t;
}
}
for(int j = 0;j < 5; j++)
{
if (j!=b)
{
printf("\n");
for(int i = 0; i < 10; i++)
printf ( "%d\t" ,arrey[j][i]);
}
}
printf("\n");
printf ( "\n Максимальное элемент массива %d \n Была удалена %d строка " ,a, b);
getchar();
}
Не знаю что именно и где ты провтыкал, но вот с константами все работает
Вот вам ответ на 1 кроссворд
Var N, S : Word;
begin
Write('Введите 3-хзначное число: '); ReadLn(N);
S := 0; while N > 0 do begin S := S + N mod 10; N := N div 10; end;
Write('Сумма цифр = ', S); if (S > 9) and (S < 100) then WriteLn(' - двузначное число') else WriteLn(' - не двузначное число');
<span>end.</span>