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: ");

16th May 2020, 8:52 PM
Akon C
Akon C - avatar
2 Answers
+ 2
Write a switch and set its case the oprator!
16th May 2020, 8:57 PM
Jason
Jason - avatar