Isn't there a much easier way to calculate the range of numbers?Code:#include <stdio.h> #include <stdlib.h> static void range ( int low, int high, FILE *out ) { while ( low <= high ) { fprintf ( out, "%d ", low++ ); fflush ( out ); } } int main ( void ) { int low, high; printf ( "Enter a range of numbers (ex. 3-12): " ); fflush ( stdout ); if ( scanf ( "%d %*c %d", &low, &high ) != 2 ) { fprintf ( stderr, "Invalid input\n" ); exit ( EXIT_FAILURE ); } range ( low, high, stdout ); return EXIT_SUCCESS; }