Advertisement
Shibly_Noman

1035 uri selection1 (f)

Feb 19th, 2017
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.38 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4.     int a,b,c,d;
  5.     scanf("%d %d %d %d", &a, &b, &c, &d);
  6.  
  7.     if(b>c&&d>a)
  8.     {
  9.         if((c+d)>(a+b))
  10.         {
  11.             if((c>=0)&&(d>=0)&&(a%2==0))
  12.             {
  13.                 printf("Valores aceitos\n");
  14.             }
  15.         }
  16.     }
  17.  
  18.  
  19.     else
  20.     {
  21.         printf("Valores nao aceitos\n");
  22.     }
  23.  
  24.  
  25.     return 0;
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement