Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int HoL(int a, int b, int c){
- int higher = -1000000;
- if(a>higher){
- higher = a;
- }
- if(b>higher){
- higher = b;
- }
- if(c>higher){
- higher = c;
- }
- return higher;
- }
- int main(){
- int a, b, c;
- cin >> a;
- cin >> b;
- cin >> c;
- cout << "The higher between: " << "[" << a << "]" << " " << "[" << b << "]" << " [" << c <<"]" << " is the number: " << HoL(a,b,c);
- }
Add Comment
Please, Sign In to add comment