Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package javaapplication2;
- import java.util.Scanner;
- public class JavaApplication2 {
- public static void main(String[] args) {
- int n;
- Scanner scan=new Scanner(System.in);
- n=scan.nextInt();
- if(n>80 && n<100){
- System.out.println("A+");
- }
- else if(n>70 && n<80)
- {
- System.out.println("A");
- }
- else if(n>60 && n<70)
- {
- System.out.println("A-");
- }
- else if(n>50 && n<60)
- {
- System.out.println("B");
- }
- else
- {
- System.out.println("F");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement