Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <fstream>
- #include <cmath>
- #include <math.h>
- using namespace std;
- int a, b, c;
- int main(int argc, const char * argv[]) {
- cin >> a >> b >> c;
- if (a >= c ) {
- if (a >= b) {
- cout << a;
- }
- else {
- cout << b;
- }
- }
- else if (c >= b){
- cout << c;
- }
- else {
- cout << b;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement