What will be displayed after the following statements execute?
```
int funny = 7, serious = 15;
funny = serious % 2;
if (funny != 1)
{
funny = 0;
serious = 0;
}
else if (funny == 2)
{
funny = 10;
serious = 10;
}
else
{
funny = 1;
serious = 1;
}
cout << funny << " " << serious << endl;
```
a. 7 15
b. 0 0
c. 10 10
d. 1 1
e. None of these
d. 1 1
Computer Science & Information Technology
You might also like to view...
The GIF format is limited to ____ colors.
A. 12 B. 256 C. 526 D. 812
Computer Science & Information Technology
The background color should complement the colors used for text, links, and images that are placed on the page.
Answer the following statement true (T) or false (F)
Computer Science & Information Technology