Important alert: (current site time 5/25/2013 5:24:19 PM EDT) Brand new: recommended reading for every programming language on the site | revamped discussion board | 7 Source Code CDs

# second degree equation

Email
 Submitted on: 8/27/2012 3:14:33 PM By: KirKot Level: Beginner User Rating: Unrated Compatibility: C++ (general) Views: 1235

It's a programme that solves second degree equations. Enjoy!

code:
Can't Copy and Paste this?
 Terms of Agreement:    By using this code, you agree to the following terms...    You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.    You may link to this code from another website, but ONLY if it is not wrapped in a frame.  You will abide by any additional copyright restrictions which the author may have placed in the code or code's description. ``` //************************************** // Name: second degree equation // Description:It's a programme that solves second degree equations. Enjoy! // By: KirKot // //This code is copyrighted and has// limited warranties.Please see http://www.Planet-Source-Code.com/vb/scripts/ShowCode.asp?txtCodeId=13830&lngWId=3//for details.//************************************** //solves a second degree equation. #include #include using namespace std; int main() { { int o=1; do { float x1,x2,a,b,c,d0; int D; cout<<"the equation form is Ax^2+-Bx+-C"<>a; cout<<"Give B:"<>b; cout<<"Give C :"<>c; D=b*b-4*a*c; cout<<"D = "<0) { cout<<"\n\nthe equation has 2 roots. x1 = "<

Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

What do you think of this code (in the Beginner category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)