Friday, June 1, 2018

URI 1035:: SOLUTION

URI Online Judge | 1035

Selection Test 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).

Input

Four integer numbers A, B, C and D.

Output

Show the corresponding message after the validation of the values​​.
Input SampleOutput Sample
5 6 7 8Valores nao aceitos
2 3 2 6Valores aceitos


[WAIT]
     First of all, think yourself that you have tried enough for the problem. If you did not please read the program once. REMEMBER one think, just believe in yourself.....YOU CAN.....YOU KNOW....



See the ANSWER here...





No comments:

Post a Comment