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.

13 lines
586 B
ObjectPascal
Raw 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.

Program cht; //Название программы
var a: integer;
b: byte; //Описание переменных
Begin //Начало программы
repeat
Writeln ('Введите число'); //Диалог с пользователем
Readln (a); //Считывание числа
if a mod 2 = 0 then //Проверка на чётность
writeln ('Это число чётное') //Вывод, если чётное
else //Иначе
writeln ('Число нечётно'); //Вывод на нечётное
until b=1
end. //Конец программы