I have an assignment to create a quadratic formula program. I need to read from a file and calculate the roots.
example of the txt file:
1 -2 3
1 2 3
5 4 2
2 1
My prof told me to extract the variable a, b, and c separately. I need to be able to tell if the last line in the file is missing b or c.
I also have no idea how to loop the main function so the it read the data, processed it, and print result then proceed to read the next values..