View Single Post
  #3 (permalink)  
Old 06-15-2007, 04:47 AM
sosgez
Posts: n/a
Program OhNoNotAnotherOne;
var n,i : integer;
a : array[1..99] of real;
sum : real;
begin
a[1] := 123.0;
a[2] := 127.8;
(* etc etc etc *)
a[99] := 120.2;
sum :=0;
i:=0;
while i<n do
begin
i:=i+1;
sum := sum + a[i];
end;
writeln('Average is ', sum/n);
writeln('Eat at Joes');
end.

__________________

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!