โ Back to Structs
Question 342
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: equal Comparea.x == b.x && a.y == b.y. There is no trailing newline.
Expected Output:
equal
Topics:
Structs
Code Editor
1
Tab to indent ยท Ctrl+Enter to run ยท 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.