Skip to content

Commit

Permalink
Merge pull request #4 from missyaria/main
Browse files Browse the repository at this point in the history
Improve hello_main.c
  • Loading branch information
JKW301 authored Dec 1, 2023
2 parents ac2c4c8 + 5ff056e commit f5a7711
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/hello_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,13 @@
#include <string.h>

int main () {
char * prenom[60];
char * nom[60];
char * prenom[40];
printf("Entrez votre nom puis votre prénom : \n");
scanf("%s %s", &nom, &prenom);

printf("Entrez votre prenom : \n");
scanf("%s", prenom);
printf("Entrez votre nom : \n");
scanf("%s", nom);
printf("Bonjour %s %s.\n", prenom, nom);
exit(EXIT_SUCCESS);
}

0 comments on commit f5a7711

Please sign in to comment.