databool.cs
来自「C#的一些例子」· CS 代码 · 共 35 行
CS
35 行
using System;
namespace _3._11
{
/// <summary>
/// Class1 的摘要说明。
/// </summary>
class Databool
{
/// <summary>
/// 应用程序的主入口点。
/// </summary>
[STAThread]
static void Main(string[] args)
{
//
// TODO: 在此处添加代码以启动应用程序
//
bool b;
b=true;
Console.WriteLine("{0}",b);
b=false;
Console.WriteLine("{0}",b);
b=true;
if(b)
Console.WriteLine("This is executed");
b=false;
if(b)
Console.WriteLine("This is not executed");
Console.WriteLine("10>9 is {0}",10>9);
Console.WriteLine("10<9 is {0}",10<9);
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?