Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int main()
- {
- int a,b;
- scanf("%d",&a);
- scanf("%d",&b);
- if(a>0 && b>0)
- {
- printf("le signe est +");
- }
- else
- {
- if(a<0 && b>0)
- {
- printf("le signe est -");
- }
- else
- {
- if(a>0 && b<0)
- {
- printf("le signe est -");
- }
- else
- {
- if(a<0 && b<0)
- {
- printf("le signe est +");
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement