/* Forcodes.c (c) Kari Laitinen http://www.naturalprogramming.com 2013-11-21 File created. 2013-11-21 Last modification. */ #include int main() { int number_of_codes_on_current_line = 0 ; int numerical_code ; printf( "\n The visible ASCII-coded characters from" "\n 20 to 7F (hexadecimal) are the following:\n\n " ) ; for ( numerical_code = 0x20 ; numerical_code < 0x80 ; numerical_code ++ ) { char character_to_print = numerical_code ; printf( "%c %2X ", character_to_print, numerical_code ) ; number_of_codes_on_current_line ++ ; if ( number_of_codes_on_current_line == 8 ) { printf( "\n " ) ; number_of_codes_on_current_line = 0 ; } } }