• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 173
  • Last Modified:

character set

I want a test program in pascal that will allow me to see the characters contained within the character set of my computer.I would like to see the integers 32-255 and their corresponding ASCII charcaters.
0
triffid1962
Asked:
triffid1962
1 Solution
 
HypoCommented:
Try this code,

Program TestChar;

uses crt;
var lp : byte;

begin
      clrscr;
      for lp := 32 to 127 do write(lp:3,' : ',chr(lp),'   ');
      readkey;
      for lp := 128 to 255 do write(lp:3,' : ',chr(lp),'   ');
      readkey;
end.
0
 
triffid1962Author Commented:
This was good,but I want to print out the output in the form Character number nnn is x. I had part of the answer and you helped a lot.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now