C Source Code/Find the greatest number from three integers

#include<stdio.h>

/* main: display largest of three unequal values */
int main(void)
{
    int a, b, c;
    printf("enter three unequal integers: ");
    scanf("%d%d%d", &a, &b, &c);
    printf("%d", (a > b ? a : b) > c ? (a > b ? a : b) : c);

    /* indicate success */
    return 0;
}