Skip to content
Sign upLog in
← Back to Community
If/else: Chessboard - same color
Profile icon
pole55

Given two squares of a chessboard. If they are painted in the same color, print YES, otherwise print NO.

The program receives four integers from 1 to 8, each specifying the column and row number, first two - for the first square, and then the last two - for the second square.

Voters
Profile icon
EJ-10QA-702607
Profile icon
pole55
Comments
hotnewtop
Profile icon
NathanMulate

can you explain how you got this answer