Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- int a,b,c,d,sum1=0,sum2=0,count=0;
- scanf("%d %d %d %d",&a,&b,&c,&d);
- sum1=c+d;
- sum2=a+b;
- if(b>c && d>a)
- if(sum1>sum2)
- if(c>=0 && d>=0 && a%2==0)
- count++;
- if(count==1)
- printf("Valores aceitos\n");
- else if(count==0)
- printf("Valores nao aceitos\n");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement