Search for question
Question

Suppose x = 1, y = -1, and z = 1. What will bedisplayed by the following statement? (Pleaseindent the statement correctly first.) if (x > 0) if (y >

0) cout << "x > 0 and y > 0" << endl; else if (z > 0) cout << "x < 0 and z > 0" << endl; O A. x > 0 and y > 0; O B. x < 0 and z > 0; O C. x < 0 and z < 0; O D. none

Fig: 1

Fig: 2

Fig: 3

Fig: 4

Fig: 5

Fig: 6

Fig: 7

Fig: 8

Fig: 9

Fig: 10