A simple calculator (Console Application) C#
(Not rated)
(Not rated)
A simple calculator (Console Application) C#
1. Make a console application of a calculator that does simple addition, subtraction,
multiplication, and division.
Enter any number in the console at runtime
Choose any operator from +, -, * or / and enter it
Enter another number
When you press Enter, the operations are ran
Only allow numbers as operands
Only allow the choice of valid operators: +, -, *, and /
Does not allow divide by zero
This program should allow the user to either continue or quit after each operation. That is, the program should not crash or quit on its own after an operation.
In the second part, floating-point operations are required.
10 years ago
A+ Work
NOT RATED
Purchase the answer to view it

- calculator.zip