CC#•Created by Androzeta on 3/11/2024 in #help Trying to learn how to use return variables, is this a good practice exercise?
class Program
{
static int MyMethod(int x, int y)
{
int xy = x + y;
return xy;
}
public static void Main(string[] args)
{
int answer = MyMethod(3, 4);
Console.WriteLine(answer);
}
}