static void Main(string[] args) { var calculator = new StringCalculatorReturnZerro(); var num = calculator.Add("2\n1,5"); var sum = calculator.Sum(num); Console.WriteLine(sum); Console.Read(); }
static void Main(string[] args) { var calculator = new StringCalculatorReturnZerro(); var str = calculator.Add("\n:1:2:7:6"); var num = calculator.NewStr(str); var sum = calculator.Sum(num); Console.WriteLine(sum); Console.Read(); }