This equation was only ment to find the values of x.....in the equation
ax2+bx+c=0 using the quadratic formula.... and if you use what i posted it works find... other complex equations will not work with this... JOSAH.... Why should it be It's "int main( ... )" not "void main( ... )" just curious..
User Profile
Collapse
-
Solving quadratic equations using visual c++ 2008 express edition
...Code:#include <stdio.h> #include <math.h> void main() { double a,b,c,x1,x2; printf("Enter the value of a\n"); scanf_s("%lf",&a); printf("Enter the value of b\n"); scanf_s("%lf",&b); printf("Enter the value of c\n"); scanf_s("%lf",&c);
No activity results to display
Show More
Leave a comment: