#include <iostream>
using namespace std;

int main() {
    int x;
    cin>>x;
    int y;
    cin>>y;
    int z;
    cin>>z;
    
    if (x>y and x>z) 
        cout<<x<<" is greatest"<<endl; 
    
    else if (y>x && y>z) 
        cout<<y<<" is greatest"<<endl;
        
    else cout<<z<<" is greatest"<<endl;
        
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: