Answers for "c# statements"

C#
0

c# statements

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"
}
Posted by: Guest on June-01-2021

C# Answers by Framework

Browse Popular Code Answers by Language