Mathematically Evaluating an integer array

Iasthaai's Avatar, Join Date: Jul 2006
Newbie Member
I'm reading in an array of digits from a user at the prompt and storing them into an integer array.

I then put operations intersparsed between these digits in an integer array, so it will read, for example "12+345+6".

My question is, how do I evaluate that array to an integer? The above example I want to evaluate to 363.

Thanks in advance!
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Duplicate thread of Mathematically Evaluating an integer array.Thread closed