Se não entender é só perguntar #include <stdio.h>
#include <stdlib.h>
int main()
{
int x,y;
printf("Digite X e Y: \n");
scanf("%d %d",&x, &y);
if(x>y) printf("%d %d \n",y,x);
else if(x<y) printf("%d %d \n",x,y);
else printf("Numeros iguais: %d \n",x);
system("PAUSE");
return 0;
}