This repository has been archived on 2024-12-25. You can view files and clone it, but cannot push or open issues or pull requests.
2024-03-10 20:32:51 +03:00

16 lines
408 B
ObjectPascal
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// Логический тип. Логические выражения с and, or и not
var
b: boolean;
x: integer;
begin
Write('Введите x (от 1 до 9): ');
Readln(x);
b := x=5;
Writeln('x=5? ',b);
b := (x>=3) and (x<=5);
Writeln('x=3,4 или 5? ',b);
b := (x=3) or (x=4) or (x=5);
Writeln('x=3,4 или 5? ',b);
b := not Odd(x);
Writeln('x - четное? ',b);
end.