What will the output look like?

```
int main( )
{
int x = 10;
if(x > 5)
{
if( x == 7)
{
cout<<”x is 7”;
}
else
{
cout<<”x is not 7”;
}

}
else
{
cout<<”x is not > 5”;
}
return 0;
}

```

A. x is not > 5
B. x is not 7
C. x is 7x is not 7
D. Nothing. The statement is written incorrectly.

B. x is not 7

Computer Science & Information Technology

You might also like to view...

Find the error(s) in each of the following statements:

a) Assume that: int a[ 3 ]; cout << a[ 1 ] << " " << a[ 2 ] << " " << a[ 3 ] << endl; b) double f[ 3 ] = { 1.1, 10.01, 100.001, 1000.0001 }; c) Assume that: double d[ 2 ][ 10 ]; d[ 1, 9 ] = 2.345;

Computer Science & Information Technology

?When defining a style, you separate a style's property from its value with a semicolon.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology