What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » Squadratic formula in c++

Squadratic formula in c++
Author: Message:
Adeptus
Senior Member
****


Posts: 732
Reputation: 40
Joined: Oct 2005
RE: Squadratic formula in c++
Using your code, cut-n-pasted:
quote:
~ $ nano -w wf.c
~ $ gcc -o wf -lm wf.c
~ $ ./wf
ax˛+bx+c=0
The value of a is 5
The value of b is 10
The value of c is 5


The discriminant is 0
The first answer is -1
The second answer is -1
Looks good to me.  Your code is fine.  I doubt there could be a problem with your input, given that typing 5, 10, 5 is easy enough.  That leaves a problem with your compiler.

So, what platform and compiler are you using?

This post was edited on 08-19-2006 at 02:18 AM by Adeptus.
08-19-2006 02:17 AM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Squadratic formula in c++ - by somelauw on 08-18-2006 at 04:04 PM
RE: Squadratic formula in c++ - by Adeptus on 08-19-2006 at 02:17 AM
RE: Squadratic formula in c++ - by somelauw on 08-19-2006 at 10:59 AM
RE: Squadratic formula in c++ - by Adeptus on 08-19-2006 at 03:03 PM
RE: Squadratic formula in c++ - by somelauw on 08-20-2006 at 09:23 AM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On