mfgnik

Untitled

Jun 2nd, 2020
707
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data