0
Calculator
How can I make the calculater in under concept For example 2+3 +4+11.....=20 Enter number by your choice for how Lang and after each number enter +sign and if the programmer enter the = sign get the summation of all numbers Please answer this question
1 Answer
0
This can actually be extremely simple.. First you get the line of input, remove all spaces from it, and then you need to know what calculations need to be made. Let's say that you're only doing addition for now. Turn the input into a string with no spaces and no equal signs, and use text.split('+') to get an array of all numbers, then just loop through it and find the sum. I didn't ask for what language you want to do it in on purpose, because I know it can be made in almost any high end programming language. Message me if you need more help.