In the below code, why is it that if /n, it accepts 6 values, but if /n is not there, it accepts 5. The full code is below so that you may run the program
Code:#include <stdio.h> int main() { int temp[5]; //4 elements numbered 0 to 4 int input; printf("How many degrees has it been the past 5 days?\n"); for(input=0;input < 5;input++) { scanf("%f\n", &temp[input]); } return(0); }