Answer to Question #242377 in C++ for Kel

Question #242377

Consider the following statement: int x,y,z, x=3; y=7; z=9; if ( x >y) if ( x-y == 4) z = 33; else z=77; What is the value of z?


1
Expert's answer
2021-09-26T11:41:15-0400


#include <iostream>


using namespace std;


int main()
{
    int x,y,z;
    x=3; 
    y=7; 
    z=9; 
    if ( x >y) if ( x-y == 4) z = 33; else z=77; 
    cout<<z;
    return 0;
}


// the value of z is 9

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
New on Blog
APPROVED BY CLIENTS