Информатика, вопрос задал lana101010 , 10 лет назад

Помогите составить программу для Паскаля на сравнение двух чисел

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

Ответил Pauel
0
Program hren;
uses crt;
var x,y:integer;
BEGIN
writeln('enter your numbers');
readln(x,y);
if x>y then
begin
writeln('the first number is greater');
end else
begin
writeln('the second number is greater');
end;
END.
Ответил HRAshton
0
var x, y: integer;
begin
     readln(x, y);
     if (x = y) then writeln('x = y');
     if (x < y) then writeln('x < y');
     if (x > y) then writeln('x > y');
end.
Новые вопросы