← Back to Structs
Question 412
Check if Two Structs Are Equal
Check if Two Structs Are Equal
Read 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 exactlyequalif they are the same point, otherwise printnot equal. For input2 3 2 3the output is exactly what is shown in Expected Output. Comparea.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.