#include
typedef struct Coordinates
{
int x;
int y;
} Coordinate;
typedef union uCoordinates
{
int x;
int y;
} uCoordinate;
// TODO - Populate 4 different Coordinates with any numbersbetween 1 and 99 for x & y values
// using coordinate1, coordinate2, coordinate3, & coordinate4as Coordinate names
// TODO - Print to screen the x & y values of eachcoordinate
// TODO - Replace the following with your name: Ethin Svoboda
int main()
{
// ADD YOUR CODE HERE
Coordinate coordinate1 = {.x 5, .y 7};
Coordinate coordinate2 = {.x 11, .y 20};
Coordinate coordinate3[100];
coordinate3[0].x = 10;
printf(format: \"Coordinate 1 - x = %d, y = %d \n\", coordinate1.x,coordinate1.y);
printf(format: \"Coordinate 2 - x = %d, y = %d \n\", coordinate2.x,coordinate2.y);
return 0;
}
The code I have is in my int main but I'm kind of confused onhow to do it. What I'm supposed to do it says \"TODO\" before. Anyhelp would be great thanks!