What will the following program segment display? 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;

Respuesta :

tonb

Answer:

1 1

Explanation:

The statement funny = serious % 2 assigns 1 to funny, since the remainder of 15 divided by 2 is 1.

Then the last else clause of the program kicks in, assigning 1 to both funny and serious.

Answer:

11

Explanation: