Write a command line calculator application in C
Tasks:
-
You already have the code to perform an addition, now add the following:
functionality for 'subtraction'
functionality for 'multiplication'
functionality for 'division'
Possible further work:
-
implement further calculations
functionality for modulus
any other you can think of/would like to implement.
-
consider validating user input
-
what to do if they enter choices not in the menu
-
can you anticipate any user input that might give unintended side effects (and how could you prevent it?)
-
-
can you think of any ways the code could be improved?
- use of other C constructs you have learned
-
any other changes you think would make the app better?