#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main ()
{
char nom[10];
int age = 0, taille;
printf("Entrez le nom du capitaine : ");
fgets(nom, sizeof(nom), stdin);
nom[strlen(nom)-1] = 0;
printf("Entrez maintenant son age : ");
scanf_s("%d",&age);
taille = strlen(nom);
if (strcmp(nom,"Haddock") == 0)
printf("Moule a gauffre !");
else
printf("Le capitaine s'apelle %s et a %d ans. En plus, il y a %d lettres dans son nom.",nom,age,taille);
printf("\n\n");
system("PAUSE");
return 0;
}