Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. /******************************************************************************
  2.  
  3. Online C++ Compiler.
  4. Code, Compile, Run and Debug C++ program online.
  5. Write your code in this editor and press "Run" button to compile and execute it.
  6.  
  7. *******************************************************************************/
  8.  
  9. #include <iostream>
  10.  
  11. using namespace std;
  12.  
  13. int main()
  14. {
  15. int a,b,c;
  16. cout << "a=";
  17. cin>>a;
  18. cout << "b=";
  19. cin>>b;
  20. cout << "c=";
  21. cin>>c;
  22.  
  23. if(a>b) {
  24. if(b>c)
  25. cout <<a;
  26. else
  27. cout<<c;
  28. }
  29. else {
  30. if(c>b)
  31. cout<<c;
  32. else
  33. cout<<b;
  34. }
  35.  
  36.  
  37. return 0;
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement