например, эта простая программа, которая проверяет, находятся ли 3 числа в порядке возрастания
if a1<a2 then
if a2<a3 then
write "the numbers are in ascending order";
else
write "the numbers are not in ascending order";
endif
else
write "the numbers are not in ascending order;
endif
Могу ли я написать это так в псевдокоде?
if (a1<a2 and a2<a3)
write "the numbers are in ascending order";
else
write "the numbers are not in ascending order";