Advertisement
SergeyPGUTI

4.2.5

Sep 29th, 2015
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.19 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     int n=0,Max=0;
  8.     do
  9.     {
  10.         cin>>n;
  11.         if (n>Max) Max=n;
  12.     }
  13.     while(n!=0);
  14.     cout<<Max;
  15.  return 0;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement