1)
var
a, b, c, d, max: integer;
begin
readln(a, b, c, d);
if(a > b) and (a > c) and (a > d) then max := a
else if(b > a) and (b > c) and (b > d) then max := b
else if(c > a) and (c > b) and (c > d) then max := c
else max := d;
write(max);
end.
2)
var
a, b, c, max:
integer;
begin
readln(a, b, c);
if(a > b) and (a > c) then max := a
else if(b > a) and (b > c) then max := b
else max := c;
write(max);
end.
{ Использован код горизонтальной табуляции
09 для выравнивания вывода }
var
a,b,h,x:real;
begin
Write('введите a,b,h: '); Read(a,b,h);
x:=a;
while x<=b do begin
Writeln(x,#09,#09,4*sin(x*x)+cos(x));
x:=x+h
end
end.
Пример
введите a,b,h: -2.15 1.7 0.38
-2.15 -4.53120848610505
-1.77 -0.163118638139122
-1.39 3.92156008975769
-1.01 3.9405021385098
-0.63 2.35427225489945
-0.25 1.21874969308017
0.13 1.05915867588807
0.51 1.90145326606337
0.89 3.47673114723651
1.27 4.29273595805526
1.65 1.54860630059752
Program yes_no;
var
n: integer;
begin
write('Введите число: ');
readln(n);
if (n mod 100 div 10) > 1 then
writeln('да')
else
writeln('нет');
end.
19. См. первое вложение.
Полученное выражение можно упростить.
20. См. второе вложение.
Упростим полученное выражение.
F
<u>никогда</u> не будет принимать значение 1
Program massive;
varI : integer;number : array [1..3] of integer;
beginnumber[1] := 100;number[2] := 103;number[3] := 106;for I := 1 to 3 dobeginwriteln(number[I]);end;
end.