URI Problem 1035 – Selection Test 1 solution( Bangla ) | C language

** Before watching the solution please make sure that you have tried enough **

#include <stdio.h>

int main(void)
{

    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");

    return 0;

}

 

You can find video explanation of this solution in our YouTube channel. You will find the YouTube channel link in the top right corner.
Like our Facebook page and SUBSCRIBE to our YouTube channel.
Stay connected.

If you face any problem, let me know in the comment section.

Leave a Comment