int a; a =3;int b =4;Console.WriteLine("a:"+ a +",b:"+ b);
效果:
2,五大类型
int
范围很大,为正负二十亿。基本够用了。
34567
double
比int还大。
3.1415
decimal
精确的数值。以m结尾。
123456m
string
双引号包围。
"你好,世界!"
char
单个字符。单引号包围。
'a'
3,案例
int a =3; double b =3.14; decimal c =965m; string d ="你好,世界!"; char e ='&';Console.WriteLine(a); Console.WriteLine(b); Console.WriteLine(c); Console.WriteLine(d); Console.WriteLine(e);
Irish budget airline Ryanair announced plans to significantly increase its route network from Frankfurt Airport, marking a direct challenge to Lufthansa, Germany's leading carrier. ...
[详细]