banner Caffè informatico

Create your own banner at mybannermaker.com!
Copy this code to your website to display this banner!

giovedì 3 maggio 2012

Informatica

uses wincrt;
var alunno:array[1..17] of real;
      I:integer;
      somma,media:real;
begin
somma:=0;
for I:=1 to 17 do
begin
writeln('introduci l''altezza');
readln(alunno[I]);
somma:=somma+alunno[I];
end;
media:=somma/17;
writeln('la media è',media:5:2);
for I:=1 to 17 do
begin
if alunno[I]>180 then
writeln(alunno[I]:5:2);
end;
end.

Scusate per il ritardo, ho avuto problemi con lo scanner.

Nessun commento:

Posta un commento