Guest User

Untitled

a guest
Oct 17th, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. import java .io.*;
  2.  
  3. public class loy
  4. {
  5. public static InputStreamReader book = new InputStreamReader (System.in);
  6. public static BufferedReader jayzon = new BufferedReader (book);
  7.  
  8. public static void main (String args[]) throws Exception
  9. {
  10. int grade;
  11.  
  12. System.out.print("Enter your grade: ");
  13. grade = Integer.parseInt(jayzon.readLine());
  14. while (grade>=101){
  15. System.out.print("Lapas na iu Enter balik");
  16. grade = Integer.parseInt(jayzon.readLine());}
  17. if (grade>=100)
  18. System.out.println("Excellent");
  19. else if (grade>=90)
  20. System.out.println("Verry good");
  21. else if (grade>=80)
  22. System.out.println("Good");
  23. else if (grade>=75)
  24. System.out.println("Fair");
  25. else
  26. System.out.println("FAILED");
  27. }
  28. }
Add Comment
Please, Sign In to add comment