|
@ -19,10 +19,17 @@ void displayWelcomeMessage(void) { |
|
|
char name[100] = {0}; |
|
|
char name[100] = {0}; |
|
|
printf("\t\t Please enter your First Name \n"); |
|
|
printf("\t\t Please enter your First Name \n"); |
|
|
scanf("%s", name); |
|
|
scanf("%s", name); |
|
|
|
|
|
displayGameInstructions(name); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void displayGameInstructions(char name[]) { |
|
|
|
|
|
printf("\t\t Hello %s \n\n", name); |
|
|
|
|
|
printf("\t\t To start this game, here are the instructions\n\n"); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int main(){ |
|
|
int main(){ |
|
|
displayWelcomeMessage(); |
|
|
displayWelcomeMessage(); |
|
|