Enter 5 grades and I will give you the total

#include<stdio.h>
void main(){

int i,total=0, grades[5];

for( i=0; i<5 ; i++)
{ printf("Enter a grade");
scanf("%d", &grades[i]);
}

for( i=0; i<5 ; i++)
{printf("\n grade %d is %d",i,grades[i] );
total=total+ grades[i];}

printf("\n\n The total is %d ",total);
}