using System;
namespace C4_1
{
public class Progarm
{
public static void Main()
{
int a = 100;
int b = 200;
//如果a < b 則交換這兩個數值
if (a < b)
{
int temp;
temp = a;
a = b;
b = temp;
}
Console.WriteLine("{0},{1}",a,b);
}
}
}
沒有留言:
張貼留言