Page 1 of 1

what is the output of the following segment of code if the value 4 is input by the user? int num/ int total = 0; cout <<

Posted: Fri Jul 01, 2022 5:46 am
by answerhappygod
What Is The Output Of The Following Segment Of Code If The Value 4 Is Input By The User Int Num Int Total 0 Cout 1
What Is The Output Of The Following Segment Of Code If The Value 4 Is Input By The User Int Num Int Total 0 Cout 1 (29.5 KiB) Viewed 34 times
what is the output of the following segment of code if the value 4 is input by the user? int num/ int total = 0; cout << "Enter a number from 1 to 10: "; cin >> num; switch (num) { case 1: A. total total cout << total << endl; D. case 2: case 3: case 4: case 8: default: B. 3 c. 13 E. None of these 0 total = 5; total= 10; total= total + 3: total + 6; total + 4; 23