Created
December 9, 2014 23:23
-
-
Save joffilyfe/cec2e3d446eef729e86b to your computer and use it in GitHub Desktop.
URI Exercice 1035
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main(void) { | |
int a, b, c, d = 0; | |
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; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment