Advertisement
M1RAI

EXERCICE4

Nov 8th, 2020
528
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.58 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main()
  5. {
  6.     int a,b;
  7.     scanf("%d",&a);
  8.     scanf("%d",&b);
  9.     if(a>0 && b>0)
  10.     {
  11.         printf("le signe est +");
  12.     }
  13.     else
  14.     {
  15.         if(a<0 && b>0)
  16.         {
  17.             printf("le signe est -");
  18.         }
  19.         else
  20.         {
  21.             if(a>0 && b<0)
  22.             {
  23.                 printf("le signe est -");
  24.             }
  25.             else
  26.             {
  27.                 if(a<0 && b<0)
  28.                 {
  29.                     printf("le signe est +");
  30.                 }
  31.             }
  32.         }
  33.     }
  34. }
  35.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement