📜  c# 语句 - C# 代码示例

📅  最后修改于: 2022-03-11 14:48:39.485000             🧑  作者: Mango

代码示例1
static void Divide(int x, int y, out int result, out int remainder)
{
    result = x / y;
    remainder = x % y;
}

public static void OutUsage()
{
    Divide(10, 3, out int res, out int rem);
    Console.WriteLine($"{res} {rem}");    // "3 1"
}