0
How to take the user input to assign which operator they want to use for an problem
Console.WriteLine("Enter a number: "); int num1 = Convert.ToInt32(Console.ReadLine()); Console.WriteLine("Enter a number: "); int num2 = Convert.ToInt32(Console.ReadLine()); Console.WriteLine("What to do with numbers: ");
2 ответов
+ 2
Write a switch and set its case the oprator!