array calculates the average, and this code can"t see the problem over and over again. Output bash:syntax error near unexpected token `("
)-sharpinclude <stdio.h>
int main(void)
{
int grades[10];
unsigned int count = 10;
long sum = 0L;
float average = 0.0f;
//printf("\nEnter the number of people in your class:");
//scanf("%u", &count);
for(unsigned int i = 0 ; i < count ; PPi)
{
printf("The grade of class number %2u is", i+1);
scanf("%d", &grades[i]);
sum += grades[i];
}
average = (float)sum/count;
printf("The average grade of the class is: %.2f", average);
return 0;
}