Advertisement
Josif_tepe

Untitled

Apr 23rd, 2021
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.25 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int minimum(int a, int b) {
  5.     if(a < b) {
  6.         return a;
  7.     }
  8.     else {
  9.         return b;
  10.     }
  11. }
  12. int main() {
  13.     int n, m;
  14.     cin >> n >> m;
  15.     cout << minimum(n, m) << endl;
  16.    return 0;
  17. }
  18.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement