Practice - 2 "Chess and chess players." Conditional operator




Task
Time limit: 1000 ms,
Memory limit: 256 Mb

Willy was tired of chess and again decided to program. Now he wants to write a program that receives 4 numbers as input: the first two numbers are the coordinates of the first rook (vertical and horizontal numbers), the second two numbers are the coordinates of the second rook. And prints "x" if the rooks can take each other and "no" if they can't take

Example 1
Input

2 2
2 8
Output
x

Example 2
Input

1 2
2 8
Output
no

Auto CHOOSE THE PROGRAMMING NECESSARY LANGUAGE!
Attach the program source file:
or enter the source code in the language:

Rules for designing programs and a list of errors during automatic task verification
           

Results: