Skip to content

Instantly share code, notes, and snippets.

@joffilyfe
Created December 9, 2014 23:23
Show Gist options
  • Save joffilyfe/cec2e3d446eef729e86b to your computer and use it in GitHub Desktop.
Save joffilyfe/cec2e3d446eef729e86b to your computer and use it in GitHub Desktop.
URI Exercice 1035
#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