// THis program will hold a set of coordinates // to find a treasure // Week 3 Lecture 6 #include struct coordinate { int x_cood; int y_cood; }; int main(void) { struct coordinate cood[2]; for(int i = 0; i < 2; i++) { printf("Please enter x coordinate: "); scanf("%d", &cood[i].x_cood); printf("Please enter y coordinate: "); scanf("%d", &cood[i].y_cood); } for(int i = 0; i < 2; i++) { printf("(%d, %d)\n", cood[i].x_cood, cood[i].y_cood); } return 0; }