Skip to content

Instantly share code, notes, and snippets.

@sams96
Created September 3, 2013 11:51
Show Gist options
  • Save sams96/6422830 to your computer and use it in GitHub Desktop.
Save sams96/6422830 to your computer and use it in GitHub Desktop.
#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