运行 ❯
获取您
自己的 C#
服务器
×
更改方向
更改主题,深色/浅色
前往空间
using System; namespace MyApplication { class Program { static int PlusMethodInt(int x, int y) { return x + y; } static double PlusMethodDouble(double x, double y) { return x + y; } static void Main(string[] args) { int myNum1 = PlusMethodInt(8, 5); double myNum2 = PlusMethodDouble(4.3, 6.26); Console.WriteLine("Int: " + myNum1); Console.WriteLine("Double: " + myNum2); } } }
Int: 13
Double: 10.559999999999999