What output is produced by the following code fragment? for (int val = 200; val >= 0;

Question:

What output is produced by the following code fragment?

for (int val = 200; val >= 0; val -= 1)
if (val % 4 != 0)
System.out.println(val);

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

Java Software Solutions

ISBN: 9789353063610

9th Edition

Authors: John Lewis, William Loftus

Question Posted: