Point Struct: Store and Print Coordinates
easyQuestion 236Define a struct type named Point that has two integer fields, x and y. Inside main, create one Point variable, set its x field to 3 and its y field to 7, then print it exactly as: Point: (3, 7) followed by a newline. This is the most basic struct task: declare the type, set the fields with the dot (.) operator, and print them.
Expected output
Point: (3, 7)= newline. The output ends with a newline, so print one after the last line.
Hints4 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.