try
public void getit(ref int a,ref int b)
{
int c=0;
if(a<b)
{
c=a;
a=b;
b=c; }
Console.WriteLine("The two number that from big to small is:{0},{1}",a,b);
}
public void getit(ref int a,ref int b)
{
int c=0;
if(a<b)
{
c=a;
a=b;
b=c; }
Console.WriteLine("The two number that from big to small is:{0},{1}",a,b);
}
if(a<b)
{
c=a;
a=b;
b=c;
Console.WriteLine("The two number that from big to small is:{0},{1}",a,b);
}
{
a=c;
b=a;
c=a;
Console.WriteLine("The two number that from big to small is:{0},{1}",a,b);
}
这个IF语句有逻辑错误哟