Header Ads

Learn Together, Stay Connected.

দ্বিঘাত সমীকরণ - ১-C


#include <stdio.h>
#include<math.h>
int main()
{
int a,b,c;
double m1,m2;
scanf("%d %d %d",&a,&b,&c);
m1=(double)((-b-sqrt((b*b)-4*a*c))/(2*a));
m2=(double)((-b+sqrt((b*b)-4*a*c))/(2*a));
printf("%lf %lf\n",m1,m2);
return 0;
}

No comments

Theme images by Dizzo. Powered by Blogger.