So I want to make a calculator and the user has to type the command by himself
By the user input I have to deliver the outcome, which will be 24.Code:
I know how to make a switch case or if-iterations to decide wheter it has to count/divide/...
But the problem I have is to parse the input from the user
I want to parse the input into number1 = 15, operation ="+" and number2="9".
How do I solve this?
Extended question: how do I solve this:
Thanks in advance