Bidyadhar Sethi

Bidyadhar Sethi

  • 1.6k
  • 37
  • 625

Need a code which can do arithmetic operations

Feb 25 2022 8:53 AM

Hi Team,

I need a console apps code which give results of any input number irrespective of number of input parameters and arithmatic operators.

Like 

a) 1 + 1
b) 2 * 2
c) 1 + 2 + 3
d) 6 / 2
e) 11 + 23
f) 11.1 + 23
g) 1 + 1 * 3

h) ( 11.5 + 15.4 ) + 10.1
i) 23 - ( 29.3 - 12.5 )
j) ( 1 / 2 ) - 1 + 1

k) ( 11.5 + 15.4 ) + 10.1

These are my input scenarios. Please provide me the logic. Thank you in advance.


Answers (2)