mn ơi cái này sai chỗ nào - TopicsExpress



          

mn ơi cái này sai chỗ nào ạ ---------------------------- #include #include #include int giaipt(double a, double b, double c, double *x1, double *x2) { double delta = b*b - 4 * a*c; if (delta < 0) return -1; else if (delta == 0) { *x1 = -b / (2 * a); return 0; } else { *x1 = (-b + sqrt(delta)) / (4 * a); *x2 = (-b - sqrt(delta)) / (4 * a); return 1; } } int main() { double a, b, c,*x1,*x2; printf(nhap a,b,c); scanf_s(\n %lf,%lf,%lf, &a, &b, &c); giaipt(a, b, c); if giaipt = -1; printf(vo nghiem); else if giaipt = 0; printf(co 1 nghiem x =%lf , *x1); else printf(\npt co 2nghiem =%lf,%lf, *x1, *x2); getchar(); }
Posted on: Mon, 19 Jan 2015 03:30:20 +0000

Trending Topics



"stbody" style="min-height:30px;">
Soothing Heat Aromatherapy Mineral Bath 16 oz Jar ( Multi-Pack),
Phil, James to settle score in Clear Dream Match 3 Brothers
Also Thank You for the wonderful calls, cards,wishes and gifts!!

Recently Viewed Topics




© 2015