logo

Crowdly

Дослідити програму. Написати що буде виведено на екран. class Program { st...

✅ 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;

}

}

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

More questions like this

Want instant access to all verified answers on elearning.kubg.edu.ua?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome