W3School TIY Editor

  • W3School 在线教程
  • 改变方向
  • 暗黑模式
​x
 
using System;
​
namespace MyApplication
{
  class Program
  {
    static void Main(string[] args)
    {
      string txt = "Hello World";
      Console.WriteLine(txt.ToUpper());   // 输出 "HELLO WORLD"
      Console.WriteLine(txt.ToLower());   // 输出 "hello world"
    }
  }
}