Click here to Skip to main content
13,085,613 members (94,507 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as


2 bookmarked
Posted 26 Oct 2010

A simple program to solve quadratic equations with

, 7 Nov 2010
Rate this:
Please Sign up or sign in to vote.
void main()
   float a,b,c,x1,x2;
   printf("Enter a=");
   printf("Enter b=");
   printf("Enter b=");
   printf("\n or \n x=%f",x2);


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

United States United States
This member doesn't quite have enough reputation to be able to display their biography and homepage.

You may also be interested in...

Comments and Discussions

GeneralReason for my vote of 1 completely incorrect code Pin
Phil J Pearson16-Nov-10 10:13
memberPhil J Pearson16-Nov-10 10:13 
GeneralReason for my vote of 2 Poor error handling. Pin
CIDev11-Nov-10 3:20
memberCIDev11-Nov-10 3:20 
GeneralReason for my vote of 1 Many problems esp. that ^ is not pow... Pin
Andrew Phillips7-Nov-10 15:16
memberAndrew Phillips7-Nov-10 15:16 
GeneralReason for my vote of 2 2 For the effort, but Tom, that code... Pin
Harrison H26-Oct-10 9:42
memberHarrison H26-Oct-10 9:42 
Reason for my vote of 2
2 For the effort, but Tom, that code is awful. Despite the syntax errors and a few logic bugs, you aren't handling a==0 at all.

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.170813.1 | Last Updated 8 Nov 2010
Article Copyright 2010 by TomSeaton
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid