+ 4

I was trying to code for a program to solve linear equation in one variable

it is giving logical error now Pls tell me what wrong is there in the program logic https://code.sololearn.com/cx571HCx4Aqz/?ref=app

19th Oct 2018, 9:16 AM
Preeti
Preeti - avatar
9 ответов
- 1
its 5 + 3 = 10
24th Oct 2018, 4:28 PM
Jonathan
+ 5
Ulisses Cruz Pls help with this what's the logical error in this https://code.sololearn.com/cx571HCx4Aqz/?ref=app
19th Oct 2018, 9:20 AM
Preeti
Preeti - avatar
+ 3
Uni that's grt it's correct now can u just tell me which line u editted
30th Oct 2018, 4:24 PM
Preeti
Preeti - avatar
+ 2
Uni it is giving error in ans like if I enter x-2=0 I should get 2 as ans but m getting 98.0
30th Oct 2018, 3:55 PM
Preeti
Preeti - avatar
+ 2
Ok so I looked at your code and I made a few changes. I think it works if x is the first term and idk if not but at least it outputs 2.0 is you enter x-2=0 https://code.sololearn.com/cHT6tfHZ1h05/?ref=app
30th Oct 2018, 4:22 PM
Uni
Uni - avatar
+ 2
Of course preetiparna mishra sorry I will add it in thé code as comments
30th Oct 2018, 4:27 PM
Uni
Uni - avatar
+ 1
Why creating one when you can use THIS MONSTER? https://code.sololearn.com/cKNyLALF7SAD/?ref=app
14th Aug 2019, 5:43 PM
Amichai Etzion
0
I run your code and I got no error....
30th Oct 2018, 3:38 PM
Uni
Uni - avatar
0
preetiparna mishra it's done 😆😆
30th Oct 2018, 4:30 PM
Uni
Uni - avatar