Язык СИ. Задана матрица целых чисел A(n ×m). Сформировать массив B(m), каждый элемент которого равен количеству положительных чисел с суммой цифр, кратной трём в соответствующем столбце матрицы. Найти строку с максимальным произведением элементов.
Program raznost_xy; var x, y:integer; begin write ('Введите число х = '); readln (x); write ('Введите число у = '); readln (y);
if (x>0) and (y>0) then begin if abs(x)>abs(y) then write ('x-y > 0'); if abs(x)=abs(y) then write ('x-y = 0'); if abs(x)<abs(y) then write ('x-y < 0'); end;
if (x<0) and (y<0) then begin if abs(x)>abs(y) then write ('x-y < 0'); if abs(x)=abs(y) then write ('x-y = 0'); if abs(x)<abs(y) then write ('x-y > 0'); end;
if (x=0) and (y=0) then write ('x-y = 0'); if (x>0) and (y<0) then write ('x-y > 0'); if (x<0) and (y>0) then write ('x-y < 0'); if (x=0) and (y>0) then write ('x-y < 0'); if (x=0) and (y<0) then write ('x-y > 0'); if (x>0) and (y=0) then write ('x-y > 0'); if (x<0) and (y=0) then write ('x-y < 0'); end.
ответ:20% отличников.