请告诉我这个该怎么改

img

result哪来的?不能无中生有。

if后面缺少括号,还有result变量需要用输入语句赋值

    if (result>=60&&result<=75){
        System.out.println("及格");
    }else if (result>=90){
        System.out.println("优秀");
    }else {
        System.out.println("良好");
    }

简单这样?但是你这还要考虑小于60分的情况