多重if结构
package com.imooc; import java.util.Scanner; public class TypeExchange { public static void main(String[] args) { System.out.println("请输入乘积:"); Scanner sc=new Scanner(System.in); int score=sc.nextInt(); if(score>=90) { System.out.println("优"); }else { System.out.println("不及格"); } } }