using System;
using System.Windows;
namespace gosoa.com.cn
{
class MyFirstClass
{
static void Main()
{
string str=Console.ReadLine();
if(str=="GoSoA")
{
Console.WriteLine("www.GoSoA.com.cn");
}else if(str=="163")
{
Console.WriteLine("www.163.com");
}else if(str=="sina")
{
Console.WriteLine("www.sina.com");
}else
{
Console.WriteLine("www.cnblogs.com");
}
}
}
}
在上面的代码示例中,我们可以看见,if else 的用法。很简单的哈。