min function in c 2b 2b

Solutions on MaxInterview for min function in c 2b 2b by the best coders in the world

showing results for - "min function in c 2b 2b"
Giorgia
18 Feb 2019
1#include <iostream>
2#include <algorithm>
3using namespace std;
4int main()
5{
6    int a = 5;
7    int b = 7;
8    cout << std::min(a, b) << "\n";
9  
10    // Returns the first one if both the numbers
11    // are same
12    cout << std::min(7, 7);
13  
14    return 0;
15}