Question: Coding in C# please show steps in Visual Studio Declare an integer variable named a initialized to the value 100, and another integer variable named

Coding in C# please show steps in Visual Studio

  • Declare an integer variable named a initialized to the value 100, and another integer variable named b initialized to the value 20.
  • Output the result of the expression a plus b using the following code example:

Console.WriteLine("{0} + {1} = {2}", a, b, a + b);

  • Create four more WriteLine statements using the following numeric operators: subtract, multiply, divide, remainder. Change the operator in both the string and the expression.

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!