/* array_practice4.c */ #include int main() { int n=0, i; float array1[50]; /* array for numeric input from the keyboard */ char line[100]; /* array to hold the line of data that will be entered */ while(n>50 || n<=0) { printf("Enter number of array elements (0 "); /* prompt for the user */ fgets(line, sizeof(line), stdin); /* get the user input */ sscanf(line, "%d", &n); /* parse the user input */ if(n <= 50 && n>0) break; printf("\nSorry, n is out of range, try again... \n\n"); } for(i=0; i ", i, (n-i)); fgets(line, sizeof(line), stdin); sscanf(line, "%f", &array1[i]); } printf("\n"); for(i=0; i