Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <algorithm>
- using namespace std;
- int min(int a, int b) {
- if(a < b) {
- return a; // a e pomaliot broj
- }
- else {
- return b; // b e pomaliot broj
- }
- }
- int main()
- {
- int a, b;
- cin >> a >> b;
- cout << min(a, b) << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement