Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java .io.*;
- public class loy
- {
- public static InputStreamReader book = new InputStreamReader (System.in);
- public static BufferedReader jayzon = new BufferedReader (book);
- public static void main (String args[]) throws Exception
- {
- int grade;
- System.out.print("Enter your grade: ");
- grade = Integer.parseInt(jayzon.readLine());
- while (grade>=101){
- System.out.print("Lapas na iu Enter balik");
- grade = Integer.parseInt(jayzon.readLine());}
- if (grade>=100)
- System.out.println("Excellent");
- else if (grade>=90)
- System.out.println("Verry good");
- else if (grade>=80)
- System.out.println("Good");
- else if (grade>=75)
- System.out.println("Fair");
- else
- System.out.println("FAILED");
- }
- }
Add Comment
Please, Sign In to add comment