Question: 25. x is useless What will be printed by the following code segment? int x=0; if (x11) System.out.print( x is just right); else if (x!=0)
25. x is useless What will be printed by the following code segment? int x=0; if (x11) System.out.print(" x is just right"); else if (x!=0) System.out.print(" x is not too bad"); else System.out.print(" x is useless"); 26. 16 How many numbers will be printed by the following for ... loop? for (n=1;n5;i) \{ System.out.print(i); t=i; \} 30. True Consider the code segment below, changing n=5 to n=6 and the expression i>n to i>=n would not change the effect of the loop. (True or False) int i,n=5; for (i=10;i>n;i) System.out.print(i)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
