Console.WriteLine('Hello World!');
.+
operator in the int c = a + b;
line of code to -
for subtraction, *
for multiplication, or /
for division. Then, when you run the program, the result changes, too.int
variable to float
.float
variable to double
, and to change each instance of the Convert.ToInt32
method to Convert.ToDouble
.case 'd':
and the comment that says // Wait for the user to respond before closing
.switch
statement should look similar to the following screenshot:program
class to handle all the code, we'll divide our app into two classes: Calculator
and Program
.Calculator
class will handle the bulk of the calculation work, and the Program
class will handle the user interface and error-capturing work.Calculator
class, as follows:Program
class, as follows: