Why have you put the printf inside the else? It will only get executed if x <= y and y <= z and z <= x (i.e. it will never print unless they all the same number).

Scrap the else (that said, I have no idea why you've used if/else to do... what? Find the largest number?)