0

C# question 3 number operator

Hi guys I need code for this equation in console a+b-c=x example 5+6-2= 9 —————— Enter first number : Select a operator “-, + , * , / ?” Enter second number: Select a operator “-, + , * , / ?” Enter third number: Answer: a+b*c = x

30th Aug 2020, 1:39 AM
Mousa Azimi
Mousa Azimi - avatar
5 Respostas
+ 1
Just ask them via a string. string firstOperator = ""; firstOperator = Console.ReadLine(); Then use that variable to do the math.
30th Aug 2020, 11:01 AM
Shadow
Shadow - avatar
0
i want write code for calculator in console and user can choose 3 numbers and 2 operator and code give answer to user for exempel 2+4-2= 4
30th Aug 2020, 2:29 AM
Mousa Azimi
Mousa Azimi - avatar
0
i maked with 2 numbers but want make with 3 numbers . u can watch my code bits
30th Aug 2020, 2:39 AM
Mousa Azimi
Mousa Azimi - avatar
0
That work 👍Thank youđŸ€Č
30th Aug 2020, 11:58 AM
Mousa Azimi
Mousa Azimi - avatar