## Java Program to grade calculation system

### Description

```Get a mark of a stuent and find its grade.
(Note:
96 to 100 - O Grade
91 to 95 - A Grade
71 to 80 - C Grade
61 to 70 - D Grade
50 to 60 - E Grade

Input:
75
Output:

### Solution

```import java.util.*;
{
public static void main(String args[])
{
int mark;
Scanner sc=new Scanner(System.in);
System.out.println("Enter The Mark:");
mark=sc.nextInt();
if(mark>95&&mark<=100)
{
}
else if(mark>90&&mark<=95)
{
}
else if(mark>80&&mark<91)
{
}
else if(mark>70&&mark<81)
{
}
else if(mark>60&&mark<71)
{
}
else if(mark>49&&mark<61)
{
}
else if(mark>=0&&mark<50)
{
}
else
{
System.out.println("Invalid Mark");
}
}
}```

### Explanation

`chained conditional check is used here to check the mark range. any one of the grade will be displayed using else if Statement.`

#### Author - Ramesh P Natarajan

Learner, Professor, Technology Trainer, Software Developer and Content Marketer, very much passionate in the field of Software Application Development, Machine Learning and Search Engine Optimization.

### Interesting Pattern Programs: for more Patterns

```Input:
5
Output:
*
**
***
****
*****
****
***
**
*Solution```
```Input:
5
Output:
*
***
*****
*******
*********
*******
*****
***
*Solution```
```Input:
5
Output:
*        *
**      **
***    ***
****  ****
**********Solution```
```Input:
5
Output:
*       *
**     **
***   ***
**** ****
*********Solution```
```Input:
5
Output:
*       *
**     **
***   ***
**** ****
*********
**** ****
***   ***
**     **
*       *Solution```
```Input:
5
Output:
*********
*******
*****
***
*
***
*****
*******
*********Solution```