We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- C++
- Introduction
- Functions
- Discussions
Functions
Functions
Sort by
recency
|
1994 Discussions
|
Please Login in order to post a comment
include
include
include
include
include
using namespace std;
int max_of_four(int a, int b, int c, int d){ int e[]={a,b,c,d}; int n=sizeof(e)/sizeof(e[0]); sort(e,e+n); int g=e[3]; return g;
}
int main() { int a,b,c,d; cin>>a>>b>>c>>d; /* Enter your code here. Read input from STDIN. Print output to STDOUT */
int maxi =max_of_four( a, b, c, d); cout<