Computer Science, asked by vipgamerff, 1 month ago

ONLY IN JAVA . PLEASE WRITE THE CORRECT PROGRAM

Attachments:

Answers

Answered by itsmerockingaarav
0

import java.util.Scanner;

public class Main

{

       public static void main(String[] args){

        Scanner scan = new Scanner(System.in);

        System.out.println("Enter a number");

        int num1 = scan.nextInt();

         

               if(num1>40){ System.out.println("Needs to improve"); }

             

               else if(num1<=40 || num1>60){ System.out.println("Can Do Better");}

             

               else if(num1<=60 || num1>80){ System.out.println("Good");}

             

               if(num1>80){ System.out.println("Excellent"); }

               

               else{System.out.println("Invalid");}

             

         

      }

}

there is error so you can fix

Similar questions