Skip to content
Snippets Groups Projects
Commit af7d85fc authored by Mikołaj Suszek's avatar Mikołaj Suszek
Browse files

Replace jezykc7.c

parent 8ebe498e
Branches
No related merge requests found
......@@ -26,11 +26,11 @@ int main()
double complex x1=((-b - csqrt(b*b-4*a*c))/2*a);
double complex x2=((-b + csqrt(b*b-4*a*c))/2*a);
printf("Rozwiazanie rownania:\n x1 = %.2f% + .2fi\n", creal(x1), cimag(x1));
printf("x2 = %.2f% + .2fi\n", creal(x2), cimag(x2));
printf(" x2 = %.2f% + .2fi\n", creal(x2), cimag(x2));
}
else {
printf("Rozwiazanie rownania:\n x1=%.2f\n", (-b-sqrt(b*b-4*a*c))/2*a);
printf("x2=%.2f", (-b+sqrt(b*b-4*a*c))/2*a);
printf(" x2=%.2f", (-b+sqrt(b*b-4*a*c))/2*a);
}
}
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment