| ||||||||||
| Online Judge | Problem Set | Authors | Online Contests | User | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest | |||||||||
给个PASCAL的AC程序Program Pku_1004;
Var s , m : Double;
q : Integer;
Begin
s := 0.0;q := 0;
While q < 12 Do
Begin
Readln(m);
s := s + m;
q := q + 1;
End;
s := s / 12;
Writeln('$',s:0:2);
readln
end.
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator