Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <limits>
- int main() {
- int max = std::numeric_limits<int>::max(), now;
- while (true) {
- std::cin >> now;
- if (now == 0) {
- break;
- }
- max = std::min(now, max);
- }
- std::cout << max;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement