Skip to content

Instantly share code, notes, and snippets.

Created February 3, 2016 16:24
Show Gist options
  • Save anonymous/1f3acf942b2f9f604095 to your computer and use it in GitHub Desktop.
Save anonymous/1f3acf942b2f9f604095 to your computer and use it in GitHub Desktop.
#include <stdio.h>
#include <math.h>
int main()
{
float a, b, c;
printf("Working on a Quadratic formula? Let me help!\nA=");
scanf("%f",&a);
printf("B=");
scanf("%f",&b);
printf("C=");
scanf("%f",&c);
printf("A=%f\nB=%f\nC=%f\n",a,b,c);
if ((%f*%f-4*%f*%f,b,b,a,c)<=0) printf("You have a non-real answer
on your hands.\n");
else printf("Thanks\n");
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment