/*Before seeing the code solution make sure that you have tried enough. Don’t copy- paste the whole code. Find out the logic. If you face any trouble, just inform me in comment.*/
#include<stdio.h>
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&&d)>=0&&a%2==0)
{
printf("Valores aceitos\n");
}
else
printf("Valores nao aceitos\n");
return 0;
}
//Happy_Coding
#include<stdio.h>
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&&d)>=0&&a%2==0)
{
printf("Valores aceitos\n");
}
else
printf("Valores nao aceitos\n");
return 0;
}
//Happy_Coding
No comments:
Post a Comment