fork download
  1. #include <stdio.h>
  2. #include <math.h>
  3.  
  4. int main() {
  5. double a, b, c, determinant;
  6.  
  7. printf("Enter the values of a, b, and c: ");
  8. scanf("%lf %lf %lf", &a, &b, &c);
  9.  
  10. determinant = pow(b, 2) - 4 * a * c;
  11.  
  12. printf("The determinant is: %lf\n", determinant);
  13.  
  14. return 0;
  15. }
  16.  
  17.  
  18.  
Success #stdin #stdout 0s 5300KB
stdin
 
stdout
Enter the values of a, b, and c: The determinant is: 0.000000