Определить максимальное и минимальное из трех вещественных чисел, вводимых с клавиатуры.
159
332
Ответы на вопрос:
Program project1777; uses math, classes ; var x,y,z: integer; begin writeln('vedite 1 chislo'); readln(x); writeln('vedite 2 chislo'); readln(y); writeln('vedite 3 chislo'); readln(z); begin if ((x> y) and (x> z)) then writeln('samoe bolshoe chislo ',x) else if ((y> x) and (y> z)) then writeln('samoe bolshoe chislo ',y) else if ((z> x) and (z> y)) then writeln('samoe bolshoe chislo ',z); end; begin if ((x< y) and (x< z)) then writeln('samoe malenkoe chislo ',x) else if ((y< x) and (y< z)) then writeln('samoe malenkoe chislo ',y) else if ((z< x) and (z< y)) then writeln('samoe malenkoe chislo ',z); end; readln; end.
Var i, n: integer; s, t: string; begin readln(s); s : = ' ' + s; n : = length(s); for i : = length(s) downto 1 do if s[i] = ' ' then begin t : = t + copy(s, i + 1, n) + ' '; n : = 0; end else n : = n + 1; writeln(t); end.
Популярно: Информатика
-
vitaliy55555514.08.2020 08:53
-
упс12110.04.2023 23:15
-
rgh22334417.12.2021 06:02
-
kamilaiks46617.04.2023 22:28
-
Olga649117.02.2022 05:25
-
Alexa260819.02.2020 03:26
-
kami65417.03.2023 20:19
-
diassssssss09.08.2020 21:00
-
sanya334402.05.2023 13:03
-
zalina5903.10.2021 17:13