I hope you can help me with this statement that I got from homework, I can not find the way to do the point to, and with the rest:
-As a result of an experiment, a laboratory obtained 18 values of temperature, all other than zero. A program must be made to enter these values and then determine and report:
a) The highest temperature entered and what was its number of order during the entrance.
b) Idem for the lowest temperature.
c) The average of negative temperatures. If there were not negative temperatures indicate it with a poster explanatory.
This is what I get to do:
#include <stdio.h>
int a, i, max, min;
int main( void ) {
for (i=0;i<18;i++) {
printf(" Introduzca el valor de temperatura: \n");
scanf("%d", &a);
if(i==0){
max=a;
min=a;
}
}
return 0;
}