Check the grade of the students based on marks. First of all we will take input a mark of subject from the candidate and according to following condition we will calculate the grade.

1. If marks <50 then Grade is F
2. if marks >=50 <60 then Grade is D
3. if marks >=60 <70 then Grade is C
4. if marks >=70 <80 then Grade is B
5. if marks >=80 <90 then Grade is A
6. if marks >=90 then Grade is A+

## Program to Calculate Grade According to marks

In following program we have taken one variables i.e mark. We will take input from the user and using if else condition we will calculate grade. in the following program in first condition we will print wrong entry if the marks is either less than 0 or greater than 100.

``````
#include<stdio.h>
void main()
{
int marks;
scanf("%d",&marks);
if(marks<0 || marks>100)
{
printf("Wrong Entry");
}
else if(marks<50)
{
}
else if(marks>=50 && marks<60)
{
}
else if(marks>=60 && marks<70)
{
}
else if(marks>=70 && marks<80)
{
}
else if(marks>=80 && marks<90)
{
}
else
{
```		``` 