1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | public class Example1{ public static void main(String args[]){ int score= 55 ; if (score >= 80 ){ System.out.println( "A" ); } else if (score >= 60 ){ System.out.println( "B" ); } else if (score >= 40 ){ System.out.println( "C" ); } else { System.out.println( "F" ); } System.out.println( "End" ); } } |