Advertisement
mfgnik

Untitled

Jun 2nd, 2020
787
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.27 KB | None | 0 0
  1. #include <iostream>
  2. #include <limits>
  3.  
  4. int main() {
  5.     int max = std::numeric_limits<int>::max(), now;
  6.     while (true) {
  7.         std::cin >> now;
  8.         if (now == 0) {
  9.             break;
  10.         }
  11.         max = std::min(now, max);
  12.     }
  13.     std::cout << max;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement