Suppose that the input is 20 -16 -5 15 6 0. What is the output of the following code?int num;int temp = 0;cin >> num;while (num != 0){if (num % 2 == 0)temp = temp + num;elsetemp = temp - num;cin >> num;}cout < "temp = " << temp << endl;
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here