Code:#include<stdio.h> int main () { int size,temperature[size]; int i,A,sizeOfDays,average=0,hotDay=0,coldDay=0,pleasantDay=0; printf("\n\tHow many days to record \n\n\t\t"); scanf("%d",&size); printf("\n\n Please Enter %d days Temperature readings \n\n ",size); for(i=0;i<size;i++) { printf("\t Temperature day [%d] => ",i+1); scanf("%d",&temperature[i]); if (temperature[i]>=85) { hotDay++; printf("\n\t Celsius very Hot \n\n\n"); } else if (temperature[i]>=60&&temperature[i]<=84) { pleasantDay++; printf("\n\t Celsius Pleasant Day \n\n\n"); } else if (temperature[i]<60) { coldDay++; printf("\n\t Celsius Very Cold \n\n\n"); } average += temperature[i] / size ; for(A=0;A<size;A++) /* I'm including this extra looping, which somehow helps me the program to run and work as long as the size entry is less than 10 . if exceeds,the program stops, and also if this looping is removed*/ { // printf("print nothing"); } } printf("Number of Hot Day/s is %d \n\n",hotDay); printf("Number of Pleasant Day/s is %d \n\n",pleasantDay); printf("Number of Cold Days is %d \n\n",coldDay); printf("The average Temperature for %d Days is %d \n\n\n",size,average); return 0; }