11th Sep 2018, 4:53 AM
MorewebYT
MorewebYT - avatar
4 odpowiedzi
0
مشکل این کد چیه؟
11th Sep 2018, 4:54 AM
MorewebYT
MorewebYT - avatar
+ 2
#include <stdio.h> #include <math.h> int main() { float a, b, c, d, x1, x2; scanf("%f", &a); printf("a = %f\n", a); scanf("%f", &b); printf("b = %f\n", b); scanf("%f", &c); printf("c = %f\n", c); printf("debugging - line 1\n"); float delta = b * b - 4 * a * c; if (delta >= 0) { d = sqrt(delta); printf("debugging - line 2\n"); x1 = (-b + d) / (2 * a); printf("debugging - line 3\n"); x2 = (-b - d) / (2 * a); printf("\nx1 = %f x2 = %f", x1, x2); } else printf("has imaginary root"); }
11th Sep 2018, 6:32 AM
Babak
Babak - avatar
0
https://code.sololearn.com/cJ1u0WS3HbVb/?ref=app برید توی این لینک کد من باز میشه ولی وقتی ران می کنید
11th Sep 2018, 4:57 AM
MorewebYT
MorewebYT - avatar
0
بالا نمیاد
11th Sep 2018, 4:57 AM
MorewebYT
MorewebYT - avatar