Ответ:
#include <iostream>
using namespace std;
int main()
{
int а; int b;
cout << "enter the first integer number: ";
cin >> a;
cout << "enter the second integer number: ";
cin >> b;
if(a<b || a=b) a=0;
cout << "a=" << a<< "\n"<<"b="<<b<<"\n";
system("pause");
return 0;
}
Если шаг не задан явно, значит он равен 1.
Самое простое решение program znanijatop;
const n = 100;
var
k,i,j:byte;
s1,s2:real;
a:array[1..n,1..n] of real;
begin
writeln('vvedite poryadok matrice');
readln(k);
s1:=0;s2:=0;for i:=1 to k do begin
for j:=1 to k do begin
writeln('vvedite a[',i,',',j,']');
readln(a[i,j]);
end;
end;
for i:=1 to k do begin
for j:=1 to k do begin
if i<j then s1:=s1+a[i,j];
if i>j then s2:=s2+a[i,j];
end;
end;
if s1 > s2 then writeln('nad glavnoy diagonali summa bolshe');
if s1 < s2 then writeln('pod glavnoy diagonali summa bolshe');
if s1 = s2 then writeln('ravni');
end.
Program zadacha;
var a,x:integer;
begin
read(x);
a:=4*4*x;
write(a);
end.
3) Получение. Когда читаем что-либо мы получаем информацию.