+ 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
Joseph Oritseweyinmi - avatar
13 Antworten
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
Marina Vasilyova
Marina Vasilyova - avatar
+ 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
Alexander Thiem - avatar
+ 1
Change =! to != Thats all
5th Sep 2020, 12:57 PM
Alexander Thiem
Alexander Thiem - avatar
+ 1
It's also not giving me the correct answer
5th Sep 2020, 1:09 PM
Joseph Oritseweyinmi
Joseph Oritseweyinmi - avatar
+ 1
Joseph Oritseweyinmi you also have mistakes in your algorithm
5th Sep 2020, 1:10 PM
Marina Vasilyova
Marina Vasilyova - avatar
+ 1
Tell more about the task, pls
5th Sep 2020, 1:11 PM
Marina Vasilyova
Marina Vasilyova - avatar
+ 1
Which equality do you want to solve? ax+by+c=0?
5th Sep 2020, 1:19 PM
Alexander Thiem
Alexander Thiem - avatar
0
Line 17 : operator ! =, not =!
5th Sep 2020, 12:56 PM
Marina Vasilyova
Marina Vasilyova - avatar
0
I want to solve a linear equation
5th Sep 2020, 1:16 PM
Joseph Oritseweyinmi
Joseph Oritseweyinmi - avatar
0
Cool. Then what is a, b, c? How many variables? Give an example
5th Sep 2020, 1:18 PM
Marina Vasilyova
Marina Vasilyova - avatar
0
Linear equation
5th Sep 2020, 1:20 PM
Joseph Oritseweyinmi
Joseph Oritseweyinmi - avatar
0
Linear equations can be different! Give an example pls, if you cannot describe
5th Sep 2020, 1:22 PM
Marina Vasilyova
Marina Vasilyova - avatar
0
Ok 2x-3 = 1
5th Sep 2020, 1:22 PM
Joseph Oritseweyinmi
Joseph Oritseweyinmi - avatar