- 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 33 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 <<
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
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 <<
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