/**************************************************************************** * 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(void) { // display mapping for uppercase letters for (int i = 65; i < 65 + 26; i++) printf("%c %d %3d %c\n", (char) i, i, i + 32, (char) (i + 32)); }