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
|
1907 Discussions
|
Please Login in order to post a comment
include
using namespace std;
int max_of_four(int a, int b, int c, int d) { int max_value = a; if (b > max_value) { max_value = b; } if (c > max_value) { max_value = c; } if (d > max_value) { max_value = d; } return max_value; }
int main() { int num1, num2, num3, num4; cin >> num1 >> num2 >> num3 >> num4;
}
include
int greatest_of_four(int a, int b, int c, int d) { int max = a; if (b > max) { max = b; } if (c > max) { max = c; } if (d > max) { max = d; } return max; }
int main() { int num1, num2, num3, num4;
}
include
include
include
include
include
using namespace std;
int max_of_four(int a, int b, int c, int d);
int main() { int a,b,c,d; cin>>a>>b>>c>>d;
}