Untitled
public text v1 · immutable#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main ()
{
char nom[20];
int age;
printf("Entrez le nom du capitaine : ");
gets(nom);
printf("Entrez maintenant son age : ");
scanf_s("%d",&age);
if (strcmp(nom,"Haddock") == 0)
printf("\nMoule a gauffre !");
else
printf("\nLe capitaine s'apelle %s et a %d ans.",nom,age);
printf("\n\n");
system("PAUSE");
return 0;
}