How to use the horizontal tab (TAB character) in Writeln with Pascal

1 Answer

0 votes
// horizontal tab (TAB character) is an ASCII control character 
// used to move the cursor to the next tab stop

program TabExample;

begin
  Writeln('abcdef', #9, 'abcde', #9, 'abcd', #9, 'abc');
end.


  
(*
run:
  
abcdef	abcde	abcd	abc
  
*)  


 



answered May 16, 2025 by avibootz
...