URI Online Judge Solution| 1035 Selection Test 1

Share This Post

Share on facebook
Share on linkedin
Share on twitter
Share on email

Selection Test 1

Adapted by Neilor Tonin, URI  Brazil | Timelimit: 1

Read 4 integer values A, B, C and D. Then if B is greater than C and D is greater than A and if the sum of C and D is greater than the sum of A and B and if C and D were positives values and if A is even, write the message “Valores aceitos” (Accepted values). Otherwise, write the message “Valores nao aceitos” (Values not accepted).


Four integer numbers A, B, C and D.


Show the corresponding message after the validation of the values​​.

Input SampleOutput Sample
5 6 7 8Valores nao aceitos
2 3 2 6Valores aceitos


int main()
{  int A,B,C,D;


printf("Valores aceitos\n");
    printf("Valores nao aceitos\n");
    return 0;

Subscribe To Our Newsletter

Get updates and learn from the best

More To Explore

Do You Want To Contact With me?

drop us a line and keep in touch