Guest User

Untitled

a guest
Oct 19th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int HoL(int a, int b, int c){
  5. int higher = -1000000;
  6. if(a>higher){
  7. higher = a;
  8. }
  9. if(b>higher){
  10. higher = b;
  11. }
  12. if(c>higher){
  13. higher = c;
  14. }
  15. return higher;
  16. }
  17.  
  18. int main(){
  19. int a, b, c;
  20. cin >> a;
  21. cin >> b;
  22. cin >> c;
  23. cout << "The higher between: " << "[" << a << "]" << " " << "[" << b << "]" << " [" << c <<"]" << " is the number: " << HoL(a,b,c);
  24. }
Add Comment
Please, Sign In to add comment