rendered paste body#include <stdio.h>
#include <stdlib.h>
struct Personne
{
char nom[100];
char prenom[100];
char adresse[1000];
long age;
int garcon; // Booléen : 1 = garçon, 0 = fille
};
int main(int argc, char *argv[])
{
struct Personne joueur[1] = {"", "", "", 0, 0};
int i;
for(i=0; i<=1; i++)
{
printf("Veuillez entrez votre nom, prenom, adresse, age et sexe(1. garcon, 0. fille)\n");
scanf("%s", joueur[i].nom);
scanf("%s", joueur[i].prenom);
scanf("%s", joueur[i].adresse);
scanf("%ld", joueur[i].age);
scanf("%d", joueur[i].garcon);
}
i=0;
while(i<=1)
{
printf("\n\nLes donnees du joueur %d sont donc:\nnom:%s\nprenom:%ld\nadresse:%ld\nage:\%ld\nsexe:%ld (1. garçon, 0. fille)", i+1, joueur[i].nom, joueur[i].prenom, joueur[i].adresse, joueur[i].age, joueur[i].garcon);
i++;
}
}