-
-
Save kainio/74ca8b72ceca533821e5e91a1aad59c7 to your computer and use it in GitHub Desktop.
titre.prénom.soyez bienvenu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
#include<stdlib.h> | |
#include<string.h> | |
int main() | |
{ | |
char prenom[20]; | |
char titre[10]; | |
printf("entrez votre prenom: "); | |
scanf("%s",&prenom); | |
printf("entrez votre titre: "); | |
scanf("%s",&titre); | |
if(strcmp(titre,"Mr")) | |
{ | |
printf("%s %s, soyez le bienvenu ", titre,prenom); | |
}else{ | |
printf("%s %s, soyez la bienvenue", titre,prenom); | |
} | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment