Solved

Assuming That the User Enters 60 as the Input, What

Question 26

Multiple Choice

Assuming that the user enters 60 as the input, what is the output after running the following code snippet?
Int num = 0;
Scanner in = new Scanner(System.in) ;
System.out.print("Enter a number: ") ;
Num = in.nextInt() ;
If (num < 10)
{
System.out.println("Too small!") ;
}
Else if (num < 50)
{
System.out.println("Intermediate!") ;
}
Else if (num < 100)
{
System.out.println("High!") ;
}
Else
{
System.out.println("Too high!") ;
}


A) Too small!
B) Intermediate!
C) High!
D) Too high!

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents