Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /******************************************************************************
- Online C++ Compiler.
- Code, Compile, Run and Debug C++ program online.
- Write your code in this editor and press "Run" button to compile and execute it.
- *******************************************************************************/
- #include <iostream>
- using namespace std;
- int main()
- {
- int a,b,c;
- cout << "a=";
- cin>>a;
- cout << "b=";
- cin>>b;
- cout << "c=";
- cin>>c;
- if(a>b) {
- if(b>c)
- cout <<a;
- else
- cout<<c;
- }
- else {
- if(c>b)
- cout<<c;
- else
- cout<<b;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement