Java program that prints all real solutions to the quadratic equation ax2+bx+c=0

Friday, October 2nd, 2009  »  Posted By  »  Total 4 Comments

Write a Java program that prints all real solutions to the quadratic equation ax2+bx+c=0. Read in a,b,c and use the quadratic formula.If the discriminant b2-4ac is negative, display a message stating that there are no real roots.

Question and Answer
C/C++ Unix & Linux Wordpress
Source codes
C C++ Java

Free email signup