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