Voici un deuxième exemple de programme Pascal :



program tableau(input,output) ;programme principal

const N = 10 ;

type tab = array[0..N-1] of integer ;
déclaration de tableau

var t : tab ;
i : integer ;


begin
début instructions composées
for i:=0 to N-1
boucle for
do
begin
writeln('entrer t[',i,']') ;
readln(t[i])
entrés/sorties conversationnelles
end
fin instructions composées
end.





Voici le programme en C correspondant.