Thank you I got the answer. this will help me a lot
Split is a function of string. But it needs a consistent characater. What Mono was saying was, add a space between each character then you can split on the space character.
You could do it like thisstring val = "4+5-3-6+7"; StringBuilder sb = new StringBuilder(); for(int i = 0; i < val.Length; i++) { if (val[i] != ' ') { sb.Append(val[i]+" "); } else sb.Append(val[i]); } string val2 = sb.ToString(); string[] s = val2.Split(' ');
at this point, s is an array of string = {"4","+","5","-","3","-","6","+","7"}
Then you would need to iterate through that array to separate it into two arrays