阅读背景:

3个字符的字符串排序

来源:互联网 
#include "stdio.h"
main()
{
	int a,b,c;
	int x,y,z;

	scanf("%d%d%d",&a,&b,&c);
	x = a;
	if(b<x) x = b;
	if(c<x) x = c;

	z = a;
	if(b>z) z = b;
	if(c>z) z = c;

	y = a+b+c-x-z;
	
	printf("%d %d %d\n",x,y,z);
	
	
}#include "stdio.h"
main()
{
	int a,b,c;
	int x,



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: