
Хрисанф
6 год назад
Составить программу ввода оценки P (1<=P<=5), полученной учащимся, и выдачи текста: "Молодец!", если P=5; "Хорошо!", если P=4; "Лентяй!", если P<=3.
ОТВЕТЫ

Sergej
Oct 24, 2020
var
p: integer;
begin
readln(p);
if p=5 then print('Молодец!')
else if p = 4 then print('Хорошо!')
else if p<=3 then print('Лентяй!')
end.
p: integer;
begin
readln(p);
if p=5 then print('Молодец!')
else if p = 4 then print('Хорошо!')
else if p<=3 then print('Лентяй!')
end.
778
Смежные вопросы: