#include /* Print a section of the ASCII table */ #define MIN 0 #define MAX 127 int main() { int low, high; char ch; while (1) { printf("Enter bounds (low high): "); scanf("%d %d", &low, &high); if ((low >= MIN) && (high <= MAX) && (low < high)) { break; } else { printf("Bad bounds. Try again.\n"); } } ch = low; for (;;) { printf("%d: %c\n", ch, ch); ch++; if (ch > high) { break; } } return 0; }