Polia
type
interval
= 3..10;
cele
= integer;
male
= byte;
mpis
= 'a'..'z';
cifry
= '0'..'9';
type pole = array[typ_indexu] of typ_prvkov;
Napríklad, |
type pol = array [-7.. 7] of real; ine = array [1..8 ] of integer; tab = array [-7.. 7] of pol; riadok = array [1.. 80] of char; text = array [1..1000] of riadok; |
|
jednoduchá práca s poľom celých čísel: |
const max=7;
type var p: pole; i: index; s: integer; t: Text;
begin
else writeln(t,p[i],' priemer'); Close(t); end; |