W3School TIY Editor

  • W3School 在线教程
  • 改变方向
  • 暗黑模式
​x
 
using System;
​
namespace MyApplication
{
  class Program
  {
    static void Main(string[] args)
    {
      int myInt = 9;
      double myDouble = myInt;  // 自动类型转换:从 int 到 double
​
      Console.WriteLine(myInt);
      Console.WriteLine(myDouble);
    }
  }
}