Hi im using turbo C++ compiler and im currently learning C.
Iand have an assignment that i need to make a program that solves mathematical problems.
Well first is that. the user would have to input a problem in whichever way the user wants. like this example: (5*2)+2-2/2 it could be random arithemtic symbols like "+" first or "-" first.
and then the program would compute it and then it would ouput its answer in individual answers. like this:
5*2 = 10
10+2 = 12
12- 2 = 10
10/2 = 5
I need help on how to do this. I was thinking of coding the program manually so i did it. but then i thought what if the user inputs a 2 digit number or a 3 digit number? how can i make this work? I need to pass this tomorrow. aand i dont know what to do. So please help me.