I've been having some trouble with my code, where should i place my ToUpper(); method in order to take effect?
using System;
namespace Test_1
{
class Program
{
static void Main(string[] args)
{
string User_Operation = "";
Console.Write("Please enter a number: ");
double first_int = Convert.ToDouble(Console.ReadLine());
Console.Write("Please enter a number: ");
double second_int = Convert.ToDouble(Console.ReadLine());
Console.Write("Please enter operation: ");
User_Operation = Console.ReadLine();
User_Operation.ToUpper();
if (User_Operation == "ADDITION")
{
Console.WriteLine(first_int + second_int);
}
else if (User_Operation == "SUBTRACTION")
{
Console.WriteLine(first_int - second_int);
}
else if (User_Operation == "MULTIPLICATION")
{
Console.WriteLine(first_int * second_int);
}
else if (User_Operation == "DIVISION")
{
Console.WriteLine(first_int / second_int);
}
else
{
Console.WriteLine("Invalid Operator Input");
}
}
}
}