package javaapplication16;
import java.util.Scanner;
public class IfElseLader {
public static void main(String[] args) {
Scanner obj= new Scanner(System.in);
int input = obj.nextInt();
if(input>=80 && input<=100)
{
System.out.println("Distinction");
}
else if(input<=79 && input>=60)
{
System.out.println("First Division");
}
else if(input<=59 && input>=40)
{
System.out.println("Second Division");
}
else if(input<=39 && input>=35)
{
System.out.println("Third Division");
}else{
System.out.println("fail");
}
}
}
0 comments:
Post a Comment