✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Дослідити програму. Написати що буде виведено на екран.
class Program{static void Main(string[] args)
{ int a=4, b=10, c=2;
Console.WriteLine(Test(a, b,c));
}
int Test(int p1, int p2, int p3)
{
if(p1 == 1)
return p2 + p3;
if(p1 == 2)
return p2 - p3;
if(p1 == 3)
return p2 * p3;
if(p1 == 4)
return p2 / p3;
}
}