using System.Collections.Generic;
using System.Globalization;
Console.Write("Input : ");
string input = Console.ReadLine();
List<string> pecah = input.Split('+', '-', '/', '*' ,'=').ToList();
List<string> op = new List<string>();
for (int i = 0; i < input.Length; i++)
else if (input[i] == '-')
else if (input[i] == '*')
else if (input[i] == '/')
res = Convert.ToInt32(pecah[c]);
for (int i = 0; i < input.Length; i++)
res = res + Convert.ToInt32(pecah[c + 1]);
else if (input[i] == '-')
res = res - Convert.ToInt32(pecah[c + 1]);
else if (input[i] == '*')
res = res * Convert.ToInt32(pecah[c + 1]);
else if (input[i] == '/')
res = res / Convert.ToInt32(pecah[c + 1]);
else if (input[i] == '=')
if (pecah[checker2] == "")
if (!input.Contains('='))
if (checker != -1 && checker == checker2&& checker != -2&& c != 0)
Console.WriteLine("Output : " + res);
Console.WriteLine("invalid");