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

14 lines
551 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.

// Условный оператор. Логические условия с or и and
var x: integer;
begin
writeln('Введите x (от 1 до 99): ');
readln(x);
if (x>=1) and (x<=9) then
writeln('Однозначное число');
// Odd - функция, возвращающая True только если x - нечетно
if Odd(x) and (x>=10) and (x<=99) then
writeln('Нечетное двузначное число');
if (x=3) or (x=9) or (x=27) or (x=81) then
writeln('Степень тройки');
end.