/* c++ */
#include <iostream>
using namespace std;
int main()
{
int A, B;
cout << "Enter the numbers A and B" << endl;
cout << "A: ";
cin >> A;
cout << "B: ";
cin >> B;
while (A > 100)
{
cout << "The numbers more than 100" << endl;
cout << "Enter again" << endl;
cout << "A: ";
cin >> A;
cout << "B: ";
cin>> B;
}
if (A == B)
cout << "ровно" << endl;
else if (A > B)
cout << "больше" << endl;
else
cout << "меньше" << endl;
return 0;
}
uses crt;
var
a,b,c,n,k,i:integer;
begin
writeln('Введите кол-во товаров');
readln(n);
for i:=1 to n do
begin
writeln('Введите стоимость ',i,' товара');
readln(a);
if a>1000 then k:=k+a;
end;
writeln('Сумма товаров, стоимостью > 1000 рублей = ',k,' рублей');
end.