Предмет: Информатика,
автор: lana101010
Помогите составить программу для Паскаля на сравнение двух чисел
Ответы
Автор ответа:
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.
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.
Автор ответа:
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.
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.
Похожие вопросы
Предмет: Қазақ тiлi,
автор: olgagerasimcuk447
Предмет: Математика,
автор: daryabeznina00
Предмет: Обществознание,
автор: niculinanatasha
Предмет: Алгебра,
автор: Кивв
Предмет: Алгебра,
автор: Солнцеясное