SHARE
TWEET

Untitled

mfgnik Jun 2nd, 2020 612 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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top