Pascal abc напишите программу, которая считывает целое число и выводит текст, аналогичный в примере. пробелы, знаки препинания, заглавные и строчные буквы важны! ввод : 179 вывод: the next number for the number 179 is 180.the previous number for the number 179 is 178.
292
385
Ответы на вопрос:
Var n: integer; begin readln(n); writeln('the next number for the number ',n,' is ',n+1,'.'); writeln('the previous number for the number ',n,' is ',n-1,'.'); end.
Var a,b: integer; c: real; begin readln(a,b); if ((a+b) mod 2 = 0) then c: = a*b else c: = a/b; writeln(c); readln(); end.
Популярно: Информатика
-
Anasteija11.02.2023 15:18
-
гуля42924.04.2023 23:46
-
alinks79208.06.2021 23:34
-
alinademushkina104.09.2020 20:09
-
khubulovaliza01.05.2020 17:56
-
анна224802.08.2022 03:39
-
СнежанаВолк03.03.2021 20:03
-
Тупая666611.01.2023 11:17
-
aguanapfel21.01.2020 07:11
-
tsattorzoda9901.07.2021 14:38