Advertisement
Robert_JR

1035

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