Advertisement
paulogp

Tabela ASCII

Aug 7th, 2011
299
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.55 KB | None | 0 0
  1. { paulogp }
  2. Program Peda_12 (Input, Output);
  3.  
  4. Uses
  5.     WinCrt;
  6.  
  7. Var
  8.     Codigo, Contador: Integer;
  9.     Fim: Char;
  10.  
  11. Begin
  12.     Repeat
  13.         ClrScr;
  14.         WriteLn('Programa: Pequena tabela ASCII.');
  15.         WriteLn('~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~');
  16.         Contador:= 0;
  17.         WriteLn;
  18.         For Codigo:= 33 to 126 do
  19.         Begin
  20.             Write(Codigo:3, ': ',Chr(Codigo), ' ');
  21.             Contador:= Contador + 1;
  22.             If Contador Mod 10 = 0 then WriteLn;
  23.         End;
  24.         WriteLn;
  25.         WriteLn;
  26.         WriteLn;
  27.         Write('Repetir programa (S/N)? ');
  28.         Fim:=ReadKey;
  29.     Until UpCase(Fim)='N';
  30.     DoneWinCrt;
  31. End.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement