Menu

(Solved) : 3 Suppose Input 38 45 714 1 Output Following Code Assume Variables Properly Declared Int S Q31985596 . . .

Write the output with explanation please
3. Suppose that the input is: 38 45 714-1 What is the output of the following code? Assume all variables are properly declared int sum - console.nextInt(); int num = console.nextInt(); for (int j = 1;js-3; j++) { num-console.nextInt); sum sum + num; System.out.printIn(Sum = + sum); 4. int x- 5; int y 50; do x=x+10; while (x<y); System.out println(x++y)3. Suppose that the input is: 38 45 714-1 What is the output of the following code? Assume all variables are properly declared int sum – console.nextInt(); int num = console.nextInt(); for (int j = 1;js-3; j++) { num-console.nextInt); sum sum + num; System.out.printIn(”Sum = ” + sum); 4. int x- 5; int y 50; do x=x+10; while (x<y); System.out println(x+””+y) Show transcribed image text

Expert Answer


Answer to 3 Suppose Input 38 45 714 1 Output Following Code Assume Variables Properly Declared Int S Q31985596 . . .

OR