Check if Two Structs Are Equal
mediumQuestion 412Read four integers from standard input describing two points: a.x a.y b.x b.y. Two points are equal only when both coordinates match. Print exactly equal if they are the same point, otherwise print not equal. For input 2 3 2 3 the output is exactly what is shown in Expected Output.
Compare a.x == b.x && a.y == b.y. There is no trailing newline.
Expected output
equal= newline. No newline after the last line.
Hints3 available
Sign in to use hintsTopics
Structs
1
Tab to indent (Esc then Tab to move on) · Ctrl+Enter to run · Shift+Alt+F to format · Ctrl+Space to expand shortcuts (p, fori)
Your output
Run your code to see the output here...
Test cases
Run your code to see test case results.