Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialAmber Cook
4,739 PointsC# coding a quadratic formula
I have been given a task to create a console app that can solve a quadratic in any of its forms. Only dealing with x² (For example: Ax²+Bx+C=0). Or would it be easier to code a formula if the equation were in another form (For example: (x + A)(x + C)=0 )? Please any help would be much appreciated
1 Answer
Amber Cook
4,739 PointsYes keeping track of the variables A, B, & C please, and thank you!
Dane Parchment
Treehouse Moderator 11,077 PointsDane Parchment
Treehouse Moderator 11,077 PointsCan you provide a bit more details? Like what is the input supposed to be, because if it's a string: For example the user types in: "9x^2+4x - 23", then that is going to be A LOT more complicated then you may think. However, if we are just keeping track of variables: For example user is asked to input the value of A, the value of B, and the value of C. Then this will be a lot easier to help you out with.