#include <stdio.h>
#include <string.h>
struct person
{
char name[50];
int age;
float height;
};
int main()
{
struct person people[3];
strcpy(people[0].name, "John");
people[0].age = 30;
people[0].height = 6.0;
strcpy(people[1].name, "Jane");
people[1].age = 25;
people[1].height = 5.5;
strcpy(people[2].name, "Bob");
people[2].age = 40;
people[2].height = 5.10;
for (int i = 0; i < 3; i++)
{
printf("Person %d: name=%s, age=%d, height=%.2f\n", i + 1,
people[i].name, people[i].age, people[i].height);
}
return 0;
}