- 1

I will be interesting to see your solutions to this task

The input of the program is the string "a+b*c-d/e". It is to calculate the value of the entered expression. Make manual input of variables "input a:", "input b:", ...(in Java)

28th Dec 2017, 3:56 AM
Евгений Томин
Евгений Томин - avatar
4 Answers
0
how to make to request a value?
28th Dec 2017, 4:40 AM
Евгений Томин
Евгений Томин - avatar
0
yes, the program must ask to enter a number 1, number 2, ...(a,b,c,d,e)
28th Dec 2017, 4:45 AM
Евгений Томин
Евгений Томин - avatar
0
in fact, we need to enter the expression as a string, for example "5+10*25-70/35" and get the result of the expression
28th Dec 2017, 4:51 AM
Евгений Томин
Евгений Томин - avatar
0
you'll need a parser and evaluator for this. quite too much to do on sololearn if you do it properly
28th Dec 2017, 5:56 AM
Jeremy
Jeremy - avatar