+ 2

Can anyone tell me what is the problem with my code ?

I have tried to create a C program to find the solution of a linear equation in one variable. But the output is not coming proper. Can anyone tell me what is the mistake done by me ?? https://code.sololearn.com/cyRi54KYG4ax/?ref=app

6th Feb 2020, 12:43 PM
JEET DHOLAKIA
JEET DHOLAKIA - avatar
4 Respostas
+ 3
Thank you Mihai Apostol
6th Feb 2020, 12:55 PM
JEET DHOLAKIA
JEET DHOLAKIA - avatar
+ 3
I have solved it myself only. I came to know about my mistake. https://code.sololearn.com/cyRi54KYG4ax/?ref=app
6th Feb 2020, 12:55 PM
JEET DHOLAKIA
JEET DHOLAKIA - avatar
+ 3
I have solved it ! Thank you. ☺️😊
6th Feb 2020, 12:57 PM
JEET DHOLAKIA
JEET DHOLAKIA - avatar
+ 1
sol = (c-b)/a c is at index 5 in your array but your string contains char not int, you must make conversion/casting. Edit. Now you changed the code with other approach. 🤔 and it is working
6th Feb 2020, 12:54 PM
Mihai Apostol
Mihai Apostol - avatar