Write a program that inputs test scores of a student and display his grade code example
Example: Write a program that inputs test scores of a student and display his grade
#include <stdio.h>
int main(void){
int num;
printf("Enter your mark ");
scanf("%d",&num);
printf(" You entered %d", num);
if(num >= 80){
printf(" You got A grade");
}
else if ( num >=60){
printf(" You got B grade");
}
else if ( num >=40){
printf(" You got C grade");
}
else if ( num < 40){
printf(" You Failed in this exam");
}
return 0;
}