fork download
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6.  
  7. /* Name of the class has to be "Main" only if the class is public. */
  8. class Ideone
  9. {
  10. public static void main (String[] args) throws java.lang.Exception
  11. {
  12.  
  13. int point = Integer.parseInt(in.readLine());
  14.  
  15. if(point >= 90){
  16. System.out.println("Grade: A");
  17. }
  18.  
  19. else if(point >= 80){
  20. System.out.println("Grade: B");
  21. }
  22.  
  23. else if(point >= 70){
  24. System.out.println("Grade: C");
  25. }
  26.  
  27. else if(point >= 60){
  28. System.out.println("Grade: D");
  29. }
  30.  
  31. else{
  32. System.out.println("Grade: F");
  33. }
  34. }
  35. }
Success #stdin #stdout 0.07s 380160KB
stdin
90
stdout
Grade: A