Why won't the final result show up?
Doing a basic calculator just from my own thought. Can't get the output to come up, any reason? using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SoloLearn { class Program { static void Main(string[] args) { Console.WriteLine("Enter your first number: "); double num1 = Convert.ToDouble(Console.ReadLine()); Console.WriteLine(num1); Console.WriteLine("Enter your second number: "); double num2 = Convert.ToDouble(Console.ReadLine()); Console.WriteLine(num2); Console.WriteLine("Would you like to (+), (-), (*), or (/)?: "); string ans = Console.ReadLine(); if (ans == "+") { Console.WriteLine("The answer is ", + (num1 + num2)); } else if (ans == "-") { Console.WriteLine("The answer is ", (num1 - num2)); } else if (ans == "*") { Console.WriteLine("The answer is ", (num1 * num2)); } else { Console.WriteLine("The answer is ", (num1 / num2)); } } } }