#include<iostream> using namespace std; int main() { int x, max; cout<<"x="; cin>>x; max=x; while(x!=0) { if(x>max) max=x; cout<<"x="; cin>>x; } cout<<max; return 0; }