What is the output of the following segment of code if the v…
What is the output of the following segment of code if the value 4 is input by the user? int num, total = 0;cout num;switch (num){ case 1: case 2: total = 5; case 3: total += 10; case 4: total += 3; case 8: total += 6; default: total += 4;}cout
Read Details