1.main()
{ int a=1,b=3,c=5,d=4 ,x;
if(a<b)
if(c<d) x=1;
else
if(a<c)
if(b<d) x=2;
else x= 3;
else x=6;
else x=7;
printf(“x=%d”,x);
}
出自:中北大学-C语言程序设计