Created
September 3, 2013 11:51
-
-
Save sams96/6422830 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <math.h> | |
int main(){ | |
float a = 6; | |
float b = -5; | |
float c = -11; | |
float d = pow(b, 2) - (4 * a * c); | |
if (d < 0){ | |
printf("no real roots\n"); | |
exit(0); | |
} else if(d = 0){ | |
printf("Equal roots: ") | |
} | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment