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 | |
writeln('entrer t[',i,']') ; | entrés/sorties conversationnelles |
end | fin instructions composées |
end. |
Voici le programme en C correspondant.