CJCoding With Joseph

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 exactly equal if they are the same point, otherwise print not equal. For input 2 3 2 3 the output is:

equal

Compare a.x == b.x && a.y == b.y. There is no trailing newline.

Expected Output:

equal
Topics:
Structs
๐Ÿ“ฅ Auto-Input:
2 3 2 3
This input is automatically fed to your program's stdin
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.