Solved

Assume That All Variables in the Following Code Are Properly

Question 12

True/False

Assume that all variables in the following code are properly declared and that the input is 3 7 4 -1. The output is 13. num = console.nextInt(); sum = num; while (num != -1) {num = console.nextInt(); sum = sum + num;} System.out.println(sum);

Correct Answer:

verifed

Verified

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

Related Questions