I created an ordinary console calculator. I want to, after performing any function, the program allows you to perform another, thereby not closing.
`string again = "yes"; while (again == "yes") { double a; double b; double total; char oper; Console.ForegroundColor = ConsoleColor.Green; Console.WriteLine("MathCalculate is working"); Console.ResetColor(); Console.WriteLine("\nEnter first number:"); a = Convert.ToDouble(Console.ReadLine()); Console.WriteLine("Enter operator:"); oper = Convert.ToChar(Console.ReadLine()); Console.WriteLine("Enter second number:"); b = Convert.ToDouble(Console.ReadLine()); if (oper == '+') { total = a + b; Console.WriteLine("Addition " + a + " and " + b + " equals: " + total + "."); } else if (oper == '-') { total = a - b; Console.WriteLine("The difference of the numbers " + a + " and " + b + " equals: " + total + "."); } else if (oper == '*') { total = a * b; Console.WriteLine("Multiplication of numbers " + a + " on " + b + " equals: " + total + "."); } else if (oper == '/') { total = a / b; Console.WriteLine("Division of numbers " + a + " on " + b + " equals: " + total + "."); } else { Console.ForegroundColor = ConsoleColor.Red; Console.WriteLine("Error"); Console.ResetColor(); } Console.WriteLine("Do you want to continue work with calculator? (yes/no)"); again = Convert.ToString(Console.ReadLine()); } }`
ein the wordyes- rdorn