namespace Test
{
class Program
{
static void Main(string[] args)
{
int age = 4;//年龄
if (age < 6 || age > 60)
Console.WriteLine("请坐爱心座!");
else
Console.WriteLine("请坚持一下!");
}
}
}
{
class Program
{
static void Main(string[] args)
{
int age = 4;//年龄
if (age < 6 || age > 60)
Console.WriteLine("请坐爱心座!");
else
Console.WriteLine("请坚持一下!");
}
}
}
2016-12-01
static void Main(string[] args)
{
char[,] ch = { {'我','是','软'},{'件','工','程'},{'师','啦','!'}};
Console.WriteLine("{0}{1}{2}",ch[1,1],ch[1,2],ch[2,0]);
}
{
char[,] ch = { {'我','是','软'},{'件','工','程'},{'师','啦','!'}};
Console.WriteLine("{0}{1}{2}",ch[1,1],ch[1,2],ch[2,0]);
}
2016-11-28
char声明字符类型;
int声明整型;储存整数;
string声明字符串类型;
double声明双精度浮点型,储存小数。
int声明整型;储存整数;
string声明字符串类型;
double声明双精度浮点型,储存小数。
2016-11-27