Ad Code

Responsive Advertisement

1035 - Selection Test 1

Author: Ismail Hosen

Daffodil International University





Problem Link

//Please follow from main function



#include<stdio.h>


int main()


{


    int a, b, c, d;





    scanf("%d %d %d %d", &a, &b, &c, &d);





    if(b>c && d>a && ((c+d)>(a+b)) && (c>0 && d>0) && (a%2==0))


    {


        printf("Valores aceitos\n");


    }


    else


    {


        printf("Valores nao aceitos\n");


    }


}





Post a Comment

0 Comments