Question: What is the output, if the input is 3 210? x = scnr.nextInt(); while (x > 0) { System.out.print(2*x + ); }
What is the output, if the input is 3 210? x = scnr.nextInt(); while (x > 0) { System.out.print(2*x + " "); }
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
This is the required answer ANSWER If we take the user input as 3 2 1 0 it always considers the firs... View full answer
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
