所使用软件工具:Dev C++ 5.11
咳咳咳,emmm不用我多说什么了吧,ԅ(¯﹃¯ԅ)诶嘿嘿...
#include<stdio.h>
int main()
{
int a,b,c;
printf("please enter the value of a,b,c=");
scanf("%d%d%d",&a,&b,&c);
if(a>b){a=(a+b)-(b=a);
}
if(b>c){b=(b+c)-(c=b);
}
if(a>b){a=(a+b)-(b=a);
}
printf("the order of a,b,c from small to large:%d,%d,%d",a,b,c);
return 0;
}