Based on the dangling-else discussion state the output for each of the following code snippets when x is 9 and y is 11 and when x is 11 and y is 9. We eliminated the indentation from the following code to make the problem more challenging.
```
if (x < 10)
{
if (y > 10)
cout << "*****" << endl;
}
else
{
cout << "#####" << endl;
cout << "$$$$$" << endl;
}
```
```
When x is 9 and y is 11
*****
When x is 11 and y is 9
#####
$$$$$
```
You might also like to view...
Graphic files are typically not compressed
Indicate whether the statement is true or false
The access method used when a workstation sends out a jam signal before transmitting data is
A) Collision detection B) Token passing C) Collision avoidance D) DQDB
In directory servers, ________.
there can only be one O in a directory server there can only be one OU in a directory server Both there can only be one O in a directory server and there can only be one OU in a directory server Neither there can only be one O in a directory server nor there can only be one OU in a directory server
A typical content management system consists of a content management application and a _____.?
A. ?content disposition application B. ?content review application C. ?content resource application D. ?content delivery application