csansoon

P1.02 X54725 Minimum of two integers

Sep 19th, 2018
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.19 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main () {
  5.     int a,b;
  6.     cin >> a >> b;
  7.     if (a<b) {
  8.         cout << a << endl;
  9.     }
  10.     else {
  11.         cout << b << endl;
  12.     }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment