求平均数

program avgscore;
var
  a, b, c, s : real;
begin
  write('please input three numbers: ');
  readln(a, b, c);
  s := (a+b+c)/3;
  writeln('average score: ');
  writeln(s:4:1);
end.
posted @ 2010-01-01 18:07  SmartIOI  阅读(165)  评论(0)    收藏  举报
本站采用CC授权如需转载、引用文章,请务必附上作者及来源处。 Creative Commons License