Write a program to print the grade of a student

#include<stdio.h>
#include<conio.h>
int main()
{
int sub1,sub2,sub3,sub4;
float average,per;
printf(“Enter the sub marks in 4 sub out of 100: \n”);
scanf(“%d%d%d%d”,&sub1,&sub2,&sub3,&sub4);
average=(sub1+sub2+sub3+sub4)/4;
per=average;
printf(“The average is %0.2f\nThe percentage is %0.2f\n”,average,per);
if(per<50)
{
printf(“Fail.\n”);
}
if(per>=50&&per<60)
{
printf(“The grade is C-.\n”);
}
if(per>=60&&per<70)
{
printf(“The grade is C+.\n”);
}
if(per>=70&&per<80)
{
printf(“The grade is B.\n”);
}
if(per>=80&&per<90)
{
printf(“The grade is B+.\n”);
}
if(per>=90&&per<=100)
{
printf(“The grade is A.\n”);
}
getch();
return 0;
}