1)
var a,b,c:integer;
begin
readln(a,b,c);
writeln(a,'+',b,'+',c,' = ',a+b+c);
writeln(a,'*',b,'*',c,' = ',a*b*c);
writeln('(',a,'+',b,'+',c,')/3 = ',(a+b+c)/3:5:3);
end.
Пример:
4 5 7
4+5+7 = 16
4*5*7 = 140
(4+5+7)/3 = 5.333
2)
var r:integer;
begin
readln(r);
writeln('S = ',pi*r*r:5:3);
writeln('C = ',2*pi*r:5:3);
end.
Пример:
5
S = 78.540
C = 31.416
3)
var a,b,i:integer;
begin
readln(a,b);
for i:=1 to 5 do
write(random(b-a+1)+a,' ');
end.
Пример:
0 100
8 1 86 54 60