Solved

After the Execution of the Following Code, What Will Be

Question 42

Multiple Choice

After the execution of the following code, what will be the value of num if the input values are 0 3? (Assume that console is a Scanner object initialized to the standard input device.) int num = console.nextInt() ;if (num > 0)
Num = num + 13;
Else
If (num >= 3)
Num = num + 15;


A) 0
B) 3
C) 13
D) 15

Correct Answer:

verifed

Verified

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

Related Questions