+ 1

# What is wrong with this code ?

Please can someone tell me Why is this code giving errors https://code.sololearn.com/c4L6rr7Ld8Ic/?ref=app

5th Sep 2020, 12:53 PM
Joseph Oritseweyinmi
0
2x-3=1 2x=4 Then you need only a and b And like ax=b, then your answer is b/a ...
5th Sep 2020, 1:23 PM
Maria Vasilyova
+ 3
Then you only need this part: int a = Convert.ToInt32(2); int b = Convert.ToInt32(-3); int c = Convert.ToInt32(1); { Console.WriteLine((c-b)/a); }
5th Sep 2020, 1:23 PM
Alexander Thiem
+ 1
Change =! to != Thats all
5th Sep 2020, 12:57 PM
Alexander Thiem
+ 1
It's also not giving me the correct answer
5th Sep 2020, 1:09 PM
Joseph Oritseweyinmi
+ 1
Joseph Oritseweyinmi you also have mistakes in your algorithm
5th Sep 2020, 1:10 PM
Maria Vasilyova
+ 1
5th Sep 2020, 1:11 PM
Maria Vasilyova
+ 1
Which equality do you want to solve? ax+by+c=0?
5th Sep 2020, 1:19 PM
Alexander Thiem
0
Line 17 : operator ! =, not =!
5th Sep 2020, 12:56 PM
Maria Vasilyova
0
I want to solve a linear equation
5th Sep 2020, 1:16 PM
Joseph Oritseweyinmi
0
Cool. Then what is a, b, c? How many variables? Give an example
5th Sep 2020, 1:18 PM
Maria Vasilyova
0
Linear equation
5th Sep 2020, 1:20 PM
Joseph Oritseweyinmi
0
Linear equations can be different! Give an example pls, if you cannot describe
5th Sep 2020, 1:22 PM
Maria Vasilyova
0
Ok 2x-3 = 1
5th Sep 2020, 1:22 PM
Joseph Oritseweyinmi