2
0

ex14.pp 309 B

1234567891011121314151617181920212223
  1. Program Example14;
  2. { Program to demonstrate the Dec function. }
  3. Var
  4. I : Integer;
  5. L : Longint;
  6. W : Word;
  7. B : Byte;
  8. Si : ShortInt;
  9. begin
  10. I:=1;
  11. L:=2;
  12. W:=3;
  13. B:=4;
  14. Si:=5;
  15. Dec (i); { i:=0 }
  16. Dec (L,2); { L:=0 }
  17. Dec (W,2); { W:=1 }
  18. Dec (B,-2); { B:=6 }
  19. Dec (Si,0); { Si:=5 }
  20. end.