#include <stdio.h>
#define  MAX(a,b) (a)>(b)? (a):(b)
#define  MIN(a,b) (a)<(b)? (a):(b)

int main()
{
    int n1,n2,n3,max,min,mid;
    scanf("%d %d %d",&n1,&n2,n3);
    max=MAX((MAX(n1,n2),n3);
    min=MIN((MIN(n1,n2),n3));
    mid=n1+n2+n3-max-min;
    printf("%d < %d < %d",min,mid,max);
}

Embed on website

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