using System;
namespace test2
{
class Program
{
static void Main(string[] args)
{
//变量的输出
//int
int a = 12;
//double
double b = 1.2d;
//float
float c = 1.2f;
//decimal
decimal d = 1.2m;
//char
char f='A';
//string
string e = "Hello world!";
//DateTime
DateTime g = System.DateTime.Now;
//Boolean
Boolean h = false;//true
Console.WriteLine("a="+a);
//类型的转换
Console.WriteLine("b="+Convert.ToString(b));
Console.WriteLine("c=" + c);
Console.WriteLine("d="+d);
Console.WriteLine("e=" + e);
Console.WriteLine("g=" + g);
Console.WriteLine("h=" + h);
Console.WriteLine("f=" + f);
Console.ReadLine();
}
}
}