Code:
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
void main(void)
{
int i;
char str[30];
clrscr();
struct football
{
int number;
char name[30];
float age;
char address[20];
} team[4];
for (i=0;i<4;i++)
{
scanf("%d", &team[i].number);
gets(str);
team[i].name=atoi(str);
scanf("%f", &team[i].age);
gets(str);
team[i].address=atoi(str);
}
for(i=0;i<4;i++)
{
printf("%d", team[i].number);
printf("%s", team[i].name);
printf("%f", team[i].age);
printf("%s", team[i].address);
}
getch();
}
[code][/code]tagged by Salem