Question: Given the following program, write the InputMethod() method. It should read two values from the user and assign them to the int variables first and
Given the following program, write the InputMethod() method. It should read two values from the user and assign them to the int variables first and second, which are then printed out in the code shown below.
using static System.Console;
class InputMethodDemo
{
static void Main()
{
int first, second;
InputMethod(out first, out second);
WriteLine("After InputMethod first is {0}", first);
WriteLine("and second is {0}", second);
}
}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
