Hi guys,
Before I begin, Uber thanks for any help!!!
So the scenario is that I'm studying for a degree and we've been asked to look into Pascal due to the rigidity of the language.
this is my first taste of programming at this level./
Our current assignment is to reproduce the ASCII table.
This is low level stuff and I'm very new so bear with me.
So fair I have this:
Code:
program ASCIITABLE(output);
var i: Integer;
ch: Char;
begin {main program}
writeln ('A to Z in ASCII');
for i := 01 to 127 do
begin
write ( chr(i ));
writeln (' ', i);
end;
writeln ('Press any key to continue' ,ch);
read (ch);
end.
as you can see, fairly basic.
What I'd like is to set the column width and blank fill with spaces so they are all aligned nicely adn to also set up 6 colums for tyhe code to be displayed in.
cna anyone help at all?
huge thanks
Bookmarks