namespace Calculator
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Welcome to the C# version of the calculator!");
Console.WriteLine("What would you like to do? \n1 = Addition\n2 = Subtraction\n3 = Multiplication\n4 = Division\n -> ");
int operator_choice = Convert.ToInt32(Console.ReadLine());
if (operator_choice == 1)
{
Console.WriteLine("What is your first number? \n -> ");
int firstNumber = Convert.ToInt32(Console.ReadLine());
}
}
}
}
namespace Calculator
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Welcome to the C# version of the calculator!");
Console.WriteLine("What would you like to do? \n1 = Addition\n2 = Subtraction\n3 = Multiplication\n4 = Division\n -> ");
int operator_choice = Convert.ToInt32(Console.ReadLine());
if (operator_choice == 1)
{
Console.WriteLine("What is your first number? \n -> ");
int firstNumber = Convert.ToInt32(Console.ReadLine());
}
}
}
}