I'm writing a program that's supposed to do this :
1. takes the number of the students in a class. ( wich is not known)
2.takes their grades.
3.gives the maximum,the minimum and the average grade of the class.
here's my code : me.c (
me.c
NOT meee.c )
i'm having problems with the last part. I wanted to make an array of the grades and put the maximum in the last cell and the minimum in the first one,
and then printf the last and the first cell. wich should be the max and the min .
but I kinda don't know how ?
can anyone help ???
or be so kind to suggest another solution ?
( only I must use the malloc )