+ 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
4 odpowiedzi
+ 3
Thank you Mihai Apostol
+ 3
I have solved it myself only. I came to know about my mistake.
https://code.sololearn.com/cyRi54KYG4ax/?ref=app
+ 3
I have solved it ! Thank you. ☺️😊
+ 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