ex25.pp 280 B

12345678910111213141516
  1. Program Example25;
  2. { Program to demonstrate the FillChar function. }
  3. Var S : String[10];
  4. I : Byte;
  5. begin
  6. For i:=10 downto 0 do
  7. begin
  8. { Fill S with i spaces }
  9. FillChar (S,SizeOf(S),' ');
  10. { Set Length }
  11. SetLength(S,I);
  12. Writeln (s,'*');
  13. end;
  14. end.