Assuming a variable f has been initialized to 5, which of the following statements sets g to

Question:

Assuming a variable f has been initialized to 5, which of the following statements sets g to 0?
a. if(f > 6 || f == 5) g = 0;
b. if(f < 3 || f > 4) g = 0;
c. if(f >= 0 || f < 2) g = 0;
d. All of the above statements set g to 0.

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

Step by Step Answer:

Related Book For  book-img-for-question

Java Programming

ISBN: 978-1337397070

9th edition

Authors: Joyce Farrell

Question Posted: