Friday, August 26, 2016

uri- 1035 - Selection Test 1

#include<stdio.h>

int main()
{
    int A,B,C,D;

    scanf("%d %d %d %d",&A,&B,&C,&D);

       if(C<B && A<D && A+B<C+D && C>0 && D>0 && A%2==0 ){
            printf("Valores aceitos\n");
            }
            else{
                printf("Valores nao aceitos\n");
            }

    return 0;
}

No comments: