Based on the dangling-else discussion , modify the following code to produce the output shown. Use proper indentation techniques. You must not make any additional changes other than inserting braces. We eliminated the indentation from the following code to make the problem more challenging
```
if (y == 8)
if (x == 5)
cout << "@@@@@" << endl;
else
cout << "#####" << endl; cout << "$$$$$" << endl; cout << "&&&&&" << endl;
```
a) Assuming x = 5 and y = 8, the following output is produced.
```
@@@@@
$$$$$
&&&&&
```
```
if (y == 8) {
if (x == 5) {
cout << "@@@@@" << endl;
}
else {
cout << "#####" << endl;
}
}
cout << "$$$$$" << endl;
cout << "&&&&&" << endl << endl;
```
You might also like to view...
What does an activity diagram depict?
What will be an ideal response?
You can use a four-digit PIN to access your Microsoft user account.? ____________________
Answer the following statement true (T) or false (F)
When a single physical computer runs a special program known as virtualization software, it operates as though it were two or more separate and independent computers, known as virtual machines.
Answer the following statement true (T) or false (F)
An alternative to using rollover images for navigation is to use _______________ lists.
Fill in the blank(s) with the appropriate word(s).