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
#####
$$$$$
```
Computer Science & Information Technology
You might also like to view...
A web-based service that enables creators to post short messages in a blog-like format is a ________
A) micropost B) reddit C) microblog D) subreddit
Computer Science & Information Technology
To create a 3-D object, you first produce a line drawing called a ____.
A. frame B. line draw C. wireframe D. blueprint
Computer Science & Information Technology