Advertisement
Guest User

Untitled

a guest
Oct 14th, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.37 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <math.h>
  4. #int main()
  5. {
  6.     float x,a,b;
  7.    
  8.     printf("Entrez a\n");
  9.     scanf("%f",&a);
  10.     printf("Entrez b\n");
  11.     scanf("%f",&b);
  12.     if(a==0){
  13.         if(b ==0){
  14.             printf("Equation indeterminee\n");
  15.         }
  16.         else{
  17.             printf("Equation impossible\n");
  18.         }
  19.     }
  20.     else{
  21.         x = -b/a;
  22.         printf("X vaut :%.3f\n",x);
  23.     }
  24.    
  25.     return 0;
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement