Suppose the input is 2 3 4 5 0. What is the output of the following code?
#include using namespace std; int main(){int number, max;cin >> number;max = number;do{cin >> number;if (number > max)max = number;} while (number != 0);cout < "max="" is="" "="">< max=""><>cout < "number="" "="">< number=""><>return 0;}
cin >> number;
max = number;do{cin >> number;if (number > max)
max = number;
} while (number != 0);cout < "max="" is="" "="">< max=""><>
cout < "number="" "="">< number=""><>return 0;
}
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here