program summa;
function sum(a,b,c : real): real;
var
s:real;
begin
s:=(a+b+c)/3;
sum:=s;
end;
x,y,z : real;
writeln('Введите числа');
read(x, y, z);
writeln('Среднее арифметическое: ',sum(x,y,z));
end.
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
program summa;
function sum(a,b,c : real): real;
var
s:real;
begin
s:=(a+b+c)/3;
sum:=s;
end;
var
x,y,z : real;
begin
writeln('Введите числа');
read(x, y, z);
writeln('Среднее арифметическое: ',sum(x,y,z));
end.