C#中的变量定义以及初始化测试案例1 (一看就懂)
2021-07-02 01:03
标签:测试案例 ogr alt double 变量定义 sharp ble image stat https://www.runoob.com/csharp/csharp-variables.html 输出 变量声明以及初始化,代码案例1 using System; #region 1helloword程序 // } /* 实际初始化 */ C#中的变量定义以及初始化测试案例1 (一看就懂) 标签:测试案例 ogr alt double 变量定义 sharp ble image stat 原文地址:https://www.cnblogs.com/zhuiqiuzhuoyueyouminxing/p/14956605.html
//namespace ChuXueZheZhiNan1
//{
// class Program
// {
// static void Main(string[] args)
// {
// Console.WriteLine("Hello World!");
// Console.ReadLine();
// }
//}
#endregion
namespace ChuXueZheZhiNan1
{
class Program
{
static void Main(string[] args)
{
short a;
int b;
double c;
//声明变量
short d;
int e;
double f;
a = 10;
b = 20;
c = a + b;
d = 1;
e = 2;
f = d + e;
Console.WriteLine("a = {0}, b = {1}, c = {2}", a, b, c);
Console.WriteLine("d = {0}, e = {1}, f = {2}", d, e, f);
Console.ReadLine();
}
}
}
上一篇:http协议前世与今生
下一篇:后端API多节点集群部署