// if语句实现选择结构.cpp : Defines the entry point for the console application.
#include "stdafx.h"
#include <stdio.h>
int main()
{
	float a,b,t;
	scanf("%f,%f",&a,&b);
	if(a>b)
	{
		t=a;
		a=b;
		b=t;
	}
	printf("%5.2f,%5.2f\n",a,b);
	return 0;
}
ps:功能实现输入两个及更多数字,排大小!
	













发表评论: