C# 如何将两个数字相加

两个数字相加

学习如何在 C# 中将两个数字相加:

实例

int x = 5;
int y = 6;
int sum = x + y;
Console.WriteLine(sum); // 打印 x + y 的和

亲自试一试