VAR
A,B,C,CHENGJI:LONGINT;
PINGJUN:DOUBLE;
BEGIN
READLN(A,B,C);
PINGJUN:=(A+B+C)/3;
CHENGJI:=A*B*C;
WRITELN(PINGJUN:0:0);
WRITELN(CHENGJI);
END.
我表示没编译,直接在对话框里打的,应该没问题吧。。。
RPOGRAM A;
var
a,b,c,d:integer;
f:real;
begin
read(a,b,c);
d:=a*b*c;
f:=(a+b+c)/3;
writeln(f);
writeln(d);
end.
S 8 H