Answer to Question #326788 in Programming & Computer Science for Timmy

Question #326788

What is the output of this program?

  1.     class jump_statments {
  2.         public static void main(String args[])
  3.         {       
  4.              int x = 2;
  5.              int y = 0;
  6.              for ( ; y < 10; ++y) {
  7.                  if (y % x == 0)
  8.                      continue
  9.                  else if (y == 8)
  10.               break;
  11.            else
  12.             System.out.print(y + " ");
  13.          }
  14.       }
  15.     }

Select one:

a. 1 3 5 7 9

b. 1 3 5 7

c. 1 2 3 4 5 6 7 8 9

d. 2 4 6 8


0
Service report
It's been a while since this question is posted here. Still, the answer hasn't been got. Consider converting this question to a fully qualified assignment, and we will try to assist. Please click the link below to proceed: Submit order

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS