fork download
  1. #include<iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. int n,max=0,i=0;
  8.  
  9. do
  10. {
  11. cin>>n;
  12. if( max<n) max=n ;
  13. }
  14. while (++i < 5);
  15. cout<<max;
  16.  
  17. system("pause");
  18. return 0;
  19. }
Success #stdin #stdout #stderr 0s 4376KB
stdin
2
545
64
2
1
stdout
545
stderr
sh: 1: pause: not found