/* * program to get two integers from user and print all numbers from the * first to the second, inclusive. */ #include int main(void) { int n1, n2, n; printf("Enter integers for start and stop, one per line:\n"); scanf("%d", &n1); scanf("%d", &n2); printf("Results:\n"); for (n = n1; n <= n2; ++n) { printf("%d\n", n); } return 0; }