using System; public class HelloWorld { public int func(int a, int b){ return a+b; } public static void Main() { HelloWorld h = new HelloWorld(); //JSRUN引擎2.0,支持多达30种语言在线运行,全仿真在线交互输入输出。 Console.WriteLine("HELLO world! - cs.jsrun.net "); Console.WriteLine("func : "+h.func(1, 2)); } }