### Close Program! but why?

#include<stdio.h>
#include<conio.h>
int main()
{
int x,y,z;
printf("Input 3 numbers: ");
scanf("%d %d %d",x,y,z);

if((x>y)&&(y>z))
printf("The ascending order is %d, %d, %d/n The decendinding order is %d, %d, %d",z,y,x,x,y,z);

if((x>z)&&(z>y))
printf("The ascending order is %d, %d, %d/n The decendinding order is %d, %d, %d",y,z,x,x,z,y);

if((y>x)&&(x>z))
printf("The ascending order is %d, %d, %d/n The decendinding order is %d, %d, %d",z,x,y,y,x,z);

if((y>z)&&(z>x))
printf("The ascending order is %d, %d, %d/n The decendinding order is %d, %d, %d",x,z,y,y,z,x);

if((z>x)&&(x>y))
printf("The ascending order is %d, %d, %d/n The decendinding order is %d, %d, %d",y,x,z,z,x,y);

if((z>y)&&(y>x))
printf("The ascending order is %d, %d, %d/n The decendinding order is %d, %d, %d",x,y,z,z,x,y);

getch();
return 0;
}
I'm not sure what you're asking.
change
 `` `` `` scanf("%d %d %d",x,y,z);``

to
 `` `` `` scanf("%d %d %d",&x,&y,&z);``

 Close Program! but why?

no error message? btw, what's your compiler?
its okay now thanks Zhuge

chipp:devC++
Topic archived. No new replies allowed.