Advertisement
ArfIsAToe

exercice 7

Nov 9th, 2020
681
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.30 KB | None | 0 0
  1. // exercice7
  2. #include <stdio.h>
  3. void main()
  4. {
  5.     int a,b;
  6.     printf("input two integers : ");
  7.     scanf("%d%d",&a,&b);
  8.     if ((a<0 && b>=0)|| (a>=0 && b<0))
  9.     {
  10.         printf("the output is a negative number\n");
  11.     }else
  12.     {
  13.         printf("the output is a positive number\n");
  14.     }
  15. }
  16.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement