第1个回答 2018-04-07
搞错了 第一个没问题
void count(double * x,double * y,double * z)
{
double temp;
if(*y<=*x)
{
temp=*x;
*x=*y;
*y=temp;
}
if(*z<=*y)
{
temp=*y;
*y=*z;
*z=temp;
}
if(*y<=*x)
{
temp=*x;
*x=*y;
*y=temp;
}
}
第3个回答 2007-11-11
pascal?
Pascal程序:
Progranm Exam22;
Var a,b,c,t: Real;
Begin
Write('Input a,b,c=');
Readln(a,b,c);
if a>b then
begin
t:=a; a:=b; b:=t
end;
if a>c then
begin
t:=a; a:=c; c:=t
end;
if b>c then
begin
t:=b; b:=c; c:=t
end;
Writeln(c:6:0,b:6:0,c:6:0);
Readln
End.