subject

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

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 01:50
Free points just awnser this. what should i watch on netflix
Answers: 2
question
Computers and Technology, 23.06.2019 07:30
To check spelling errors in a document, the word application uses the to determine appropriate spelling. internet built-in dictionary user-defined words other text in the document
Answers: 2
question
Computers and Technology, 24.06.2019 10:00
Which two technologies support the building of single-page applications?
Answers: 2
question
Computers and Technology, 24.06.2019 12:00
An npn transistor is correctly biased and turned on if the a. base is negative. b. collector is negative. c. collector is positive with respect to the emitter and negative with respect to the base. d. collector is the most positive lead followed by the base.
Answers: 1
You know the right answer?
After the execution of the following code, what will be the value of num if the input values are 0 3...
Questions
question
Computers and Technology, 03.11.2020 21:10
question
Social Studies, 03.11.2020 21:10
Questions on the website: 13722361