Question: using c# For problems #1-5, create a single console application. In it (and outside the curly brackets of class program), create a class MyLab06. All

using c#

For problems #1-5, create a single console application. In it (and outside the curly brackets of "class program"), create a class "MyLab06". All the following functions (Q#1-5) must be defined in this new class with public scope. Also illustrate calling each function from void main in the class "program". Each problem is worth 20pts.

  1. Write a public void function that takes two values A and B (both int) and swaps their values (puts A value in B and B value in A using ref keyword).

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!