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 value of a following the expression assign a plus b to a using the following code example:
a += b;
Console.WriteLine("The value of a is now:{0}", a);
- Create four more binary operator statements that modify variable a using the following numeric operators: subtract, multiply, divide, remainder.
- Repeat the WriteLine statement after each change to display the new value of variable a.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
