Skip to content

Commit

Permalink
Grades compare in java
Browse files Browse the repository at this point in the history
  • Loading branch information
suhanigupta23 authored Dec 26, 2023
1 parent da23144 commit 0301d6b
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions grades.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import java.util.*;

public class Main
{

public static void main(String[] args)
{
Scanner scn = new Scanner (System.in);
int marks = scn.nextInt();
//input
if(marks>90)
{
System.out.println("Excellent");
}

else if(marks<=90&&marks>80)
{
System.out.println("Good");
}
else if(marks<=80&&marks>70)
{
System.out.println("Fair");
}
else if(marks<=70&&marks>60)
{
System.out.println("Meets expectations");
}
else
{
System.out.println("Below par");
}
}
}

0 comments on commit 0301d6b

Please sign in to comment.