#include <stdio.h> #define SIZE 31 typedef struct { int id; char agency[SIZE]; int bedrooms; int baths; int sf; char pool; } House; void readOneHouse(int id, House* h) { (*h).id = id; scanf("%s", (*h).agency); scanf("%d", &(*h).bedrooms); scanf("%d", &(*h).baths); scanf("%d", &(*h).sf); scanf(" %c", &(*h).pool); } void printOneHouseToHTML(House h) { printf("<h1>%s</h1>\n", h.agency); printf("<h3>House ID: %d </h3> Bedrooms: %d <br>\n Baths: %d <br>", h.id, h.bedrooms, h.baths); printf("<h3> House Size </h3> <br> House Size: %d Square feet", h.sf); printf("<br> Pool: %c", h.pool); } int main(void) { int id; int result; House h; printf("<html><body>\n"); result = scanf("%d", &id); while (result != EOF) { readOneHouse(id, &h); printOneHouseToHTML(h); result = scanf("%d", &id); } printf("</body></html>\n"); return 0; }