home *** CD-ROM | disk | FTP | other *** search
-
- uses crt,tpfast;
-
- var wnum :word;
- ch :char;
-
-
- begin
- textattr := 7;
- clrscr;
- repeat
- gotoxy(1,1);
- writeln('Enter a numeric number or 0 to quit .. ?');
- gotoxy(43,1);
- readln(wnum);
- writeln;
- writeln('Word entered ... ',wnum);
- writeln('Word rotated left 1 ... ',rotatewordleft(wnum,1));
- writeln('Word rotated right 1 bit ... ',rotatewordright(wnum,1));
- writeln('Word converted to hex ... ',wordtohex(wnum));
- until wnum = 0;
- end.