Write a C program to do the following tasks:

a) Read the grades of students in the class from the keyboard (assume the grades are

integer in the range 0 to 100).

b) Find the average of the grades that are less than 50. If there are no grades less than 50, then display the message "No grades < 50".

c) Find the average of the grades that are greater than or equal 50. If there are no

grades greater than or equal to 50, then display the message "No grades >= 50".


The program should terminate if the input grade is negative. (Hint: Use sentinel-controlled repetition structure). Note that average of the grades might not be an integer and design your program considering that