I'm not too sure what your question is but there are a few issues in the code.
- Misplace of { in line 2
- Incorrect declaration of main statement
- char[10] - This is incorrect and appears to be not needed. If it is, perhaps char a[10] will suffice.
- A switch statement should have a "failsafe", by having a default case. This is executed if none of the cases match.
- return 0 not o
Final Code:
#include <stdio.h>
int main(){
char grd;
printf("Enter grade: ");
scanf("%c",&grd);
switch(grd){
case 'E':
printf("Excellent");
break;
case 'V':
printf("Very Good");
break;
case 'G':
printf("Good");
break;
case 'A':
printf("Average");
break;
case 'F':
printf("Fail");
break;
default:
printf("Grade entered not available");
}
return 0;
}