/**************************************************************************** * ascii2.c * * Computer Science 50 * David J. Malan * * Displays the mapping between alphabetical ASCII characters and * their decimal equivalents using two columns. * * Demonstrates specification of width in format string. ***************************************************************************/ #include int main(int argc, char * argv[]) { int i; /* display mapping for uppercase letters */ for (i = 65; i < 65 + 26; i++) printf("%c %d %3d %c\n", (char) i, i, i + 32, (char) (i + 32)); }