Question: (1) Write a C# function that two parameters named va and vb. The function performs the following operations: define two integer variables (named v1 and

 (1) Write a C# function that two parameters named va and

(1) Write a C# function that two parameters named va and vb. The function performs the following operations: define two integer variables (named v1 and v2) and initialize them by passing the values of two parameters. perform the following calculations V1-v1+v2 v2-v2 v2; For each operation above, if the result is greater than or equal to 100, output the result. Otherwise, only output a message telling the user thatthe result is less than 100. (2) define C# function that two parameters named va and vb. The function performs the same operations as that in (1). But, this function will return the value of v2. (3) in the Main method call the functions above

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!