summaryrefslogtreecommitdiff
path: root/reference/C/PROBLEMS/ascii1.c
blob: 05b4ce830dfd6d211559d72ee0e5d84428679b9b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/************************************************************************
 * 
 * problem: Display an Ascii table. Basic version
 * Author:  M J Leslie
 * Date:    12-Mar-94
 *
 ************************************************************************/

#include <stdio.h>			/* printf, putchar, fopen, fclose */

main()
{
int count;

for (count=0; count<=127; count++) 
   {
   printf("%2x %c \n", count, count); 	/* O/P hex and character formats */
   }
}