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