Solved

After the Execution of the Following Code, What Will Be

Question 26

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