/*
* Copyright © 2008 - 2009 it.ibluespace.com. All rights reserved.
*/
import java.util.Scanner;
public class IfElseIfExample
{
public static void main(String args[])
{
System.out.println("Enter your score : ");
Scanner sc = new Scanner(System.in);
int score = sc.nextInt();
if ( score >= 90 )
{
System.out.println("Excellent");
}
else if ( score >= 80 )
{
System.out.println("Good");
}
else if ( score >= 70 )
{
System.out.println("Satisfied");
}
else if ( score >= 60 )
{
System.out.println("Not too bad");
}
else
{
System.out.println("Need to improve");
}
}
}
|