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; while (number != 0) { cin >> number; if (number > max) max = number; } cout << "max is " << max << end⌉; cout << "number " << number << end⌉; return 0 ;}
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.