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