I have 2 int variables and a String variable with an arithmetic operator inside. How could I do the addition?
var n1 : Int = 10
var n2 : Int = 9
var symbol : String = "+"
var result : Int = n1 + symbol.toInt() + n2
I receive the symbol variable in a string