import java.util.Scanner;
class homework1{
public static void main(String[] args){
Scanner input =new Scanner(System.in);
System.out.print("请输入所获利润:"+"\t");
int cash;
cash=input.nextInt();
System.out.println("所获利润为:"+cash);
if(cash<=100000){
int cash1=(int)(cash*0.1);
System.out.println("您可获得利润为:"+cash1);
}else if(cash<=200000){
System.out.println("您可获得利润为:"+(cash-cash1)*0.75);
};
}
}
System.out.println("您可获得利润为:"+(cash-cash1)*0.75); 这句老找不到符号 这是为啥
小草1434
相关分类