Top Posters
Since Sunday
7
6
o
5
b
4
s
3
j
3
b
3
m
3
K
3
g
3
L
3
w
3
New Topic  
zar zar
wrote...
Posts: 458
Rep: 1 0
4 years ago
What is the output of the following code? (Please indent the statement correctly first.)

int x = 9;
int y = 8;
int z = 7;

if (x > 9)
if (y > 8)
System.out.println("x > 9 and y > 8");
else if (z >= 7)
System.out.println("x <= 9 and z >= 7");
else
System.out.println("x <= 9 and z < 7");


▸ x <= 9 and z >= 7;

▸ x > 9 and y > 8;

▸ x <= 9 and z < 7;

▸ none
Textbook 
Introduction to Java Programming, Comprehensive Version

Introduction to Java Programming, Comprehensive Version


Edition: 10th
Author:
Read 95 times
1 Reply
Replies
Answer verified by a subject expert
christinaalexchristinaalex
wrote...
Posts: 393
4 years ago
Sign in or Sign up in seconds to unlock everything for free
More solutions for this book are available here

Related Topics

zar Author
wrote...

4 years ago
Thanks
wrote...

Yesterday
Thank you, thank you, thank you!
wrote...

2 hours ago
I appreciate what you did here, answered it right Smiling Face with Open Mouth
New Topic      
Explore
Post your homework questions and get free online help from our incredible volunteers
  1028 People Browsing
Related Images
  
 1092
  
 301
  
 152
Your Opinion