#include<stdio.h>
#include<math.h>
int main()
{
float a,b,c,r1,r2;
printf("enter the number a(co-ordinate of x^2):");
scanf("%f", &a);
printf("enter the number b(co-ordinate of x):");
scanf("%f", &b);
printf("enter the number c:");
scanf("%f", &c);
r1=(-b+sqrt(b*b-4*a*c))/2*a;
r2=(-b-sqrt(b*b-4*a*c))/2*a;
printf("roots of the eq are r1,r2 %f %f",r1,r2);
return 0;}
To embed this project on your website, copy the following code and paste it into your website's HTML: