Write C program to perform simple C arithmetic calculations. The user is to enter a simple expression (integer operator integer) such as: 15 + 30
The program is to extract the 2 operands and the operator, perform the indicated calculation and display the result. For example: 15 + 30 = 45
Operators should include +, -, *, /, and %
Operands are positive integers, no sign
*Use getchar to input the expression
Allow for variable spacing before the first operand and between operators and operands (zero, one or more spaces)
Allow the user the option of entering another expression
Code a function for each operator to do the appropriate arithmetic operation (5 functions)
No global variables. No string handling functions. No arrays
Input: Interactive. Allow the user to enter multiple expressions.
Output: Echo the input (both user prompts and user entered data).
Print the whole expression with the result or an appropriate error message
Be sure output data shows all valid and invalid test data and how the program handled it.
29 freelance font une offre moyenne de $37 pour ce travail
I will send you the executable file. After 10 calculations the program will stop working. If you pay me I will fix it to stop when you enter stop.
Hello . I make this before but with another functions . I can do it if you want . Please contact me if you are interesed