pascalabcnet/InstallerSamples/!Tutorial/05_IfCaseBoolean/If4.pas

18 lines
455 B
ObjectPascal
Raw Permalink Normal View History

// Вложенные условные операторы
2015-05-14 22:35:07 +03:00
var x: integer;
begin
writeln('Введите оценку (1..5): ');
2015-05-14 22:35:07 +03:00
readln(x);
if (x=1) then
writeln('Единица')
2015-05-14 22:35:07 +03:00
else if (x=2) then
writeln('Двойка')
2015-05-14 22:35:07 +03:00
else if (x=3) then
writeln('Тройка')
2015-05-14 22:35:07 +03:00
else if (x=4) then
writeln('Четверка')
2015-05-14 22:35:07 +03:00
else if (x=5) then
writeln('Пятерка')
else writeln('Такой оценки нет')
2015-05-14 22:35:07 +03:00
end.