#include <stdio.h>

int main() {
    int a=9,b=89,c=4,d=78;
    if(a>b && a>c && a>d){
        printf("The greatest of all is %d",a);
    }
    else if(b>a && b>c && b>d){
        printf("The greatest of all is %d",b);
    }
    else if(c>a && c>b && c>d){
        printf("The greatest of all is %d",c);
    }
    else if(d>a && d>b && d>c){
        printf("The greatest of all is %d",d);
    }    
    
    return 0;
}

Embed on website

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