Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // exercice7
- #include <stdio.h>
- void main()
- {
- int a,b;
- printf("input two integers : ");
- scanf("%d%d",&a,&b);
- if ((a<0 && b>=0)|| (a>=0 && b<0))
- {
- printf("the output is a negative number\n");
- }else
- {
- printf("the output is a positive number\n");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement