import java.util.Scanner;
public class nesting {
public static void main(String []ages){ Scanner i=new Scanner(System.in); System.out.println(" Please input test result "); int a=i.nextInt(); char z=a>=90? 'A':a<90&&a>60? 'B':'C'; System.out.println(" your grade is "+z); }Copy the code
}