Hi all. I am currently taking a beginning class in C programming and am working on an assignment where I need to prompt the user to enter an expression then display the expression and the result. e.g
Enter INT Expression: 6 / 2
Result: 6 / 2 = 3
I know how to store the INT values using the scanf function, but I'm not sure how I should go about storing the operator. Also once I have the operator stored, how should I go about writing an expression to store the result. I know how if the operator was a constant, e.g. "x + y = result", but how should I approach it when the operator is a variable. Thanks in advance for the help.