What is the output of the following segment of code if the value4is input by the user?int num;int total = 0;cout < "enter="" a="" number="" from="" 1="" to="" 10:="">cin >> num;switch (num){ case 1: case 2: total = 5; case 3: total = 10; case 4: total = total + 3; case 8: total = total + 6; default: total = total + 4;}cout < total=""><>
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here