编辑代码

using System;

public class HelloWorld
{
    public static void Main()
    {
       //JSRUN引擎2.0,支持多达30种语言在线运行,全仿真在线交互输入输出。
        Func<int,double> func=new Func<int,double>(yearday);
        Console.WriteLine(func(300));
       
    }
    static double yearday(int c){
        return (double)(3 * c);
    } 
}