编辑代码

using System;

public class HelloWorld
{
    public static void Main()
    {
       //JSRUN引擎2.0,支持多达30种语言在线运行,全仿真在线交互输入输出。
        string boxno="202;120;op120";
        //char[] delimiterChars = {';'};
        //string[] strs = boxno.Split(";")
        //foreach(var item in strs) {
        //    Console.WriteLin(item);
        //}
        string text = "C# is a fun programming language";
        text = text.Substring(0,2);

      // split string 
      string[] result = boxno.Split(";");

      Console.Write("Result: ");
      foreach(String str in result) {
        Console.Write(str + ", ");
      }
      Console.ReadLine();
        Console.WriteLine("HELLO world!     - cs.jsrun.net ");
        Console.WriteLine(text);
    }
}