You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
843 B

2 years ago
2 years ago
2 years ago
  1. #include <stdio.h>
  2. #include <time.h>
  3. #include <stdlib.h>
  4. #include <ctype.h>
  5. #include <string.h>
  6. #include "quizproject.h"
  7. void displayWelcomeMessage(void) {
  8. printf("\t\t------------------------------------------\n\n");
  9. printf("\t\t------------------------------------------\n\n");
  10. printf("\t\t Welcome to The Quiz \n\n");
  11. printf("\t\t------------------------------------------\n");
  12. printf("\t\t------------------------------------------\n\n");
  13. printf("\t\t Press 'Enter' to begin the Game \n");
  14. char startGame;
  15. scanf("%c", &startGame);
  16. startGame = toupper(startGame);
  17. if (startGame != ' ') {
  18. char name[100] = {0};
  19. printf("\t\t Please enter your First Name \n");
  20. scanf("%s", name);
  21. }
  22. }
  23. int main(){
  24. displayWelcomeMessage();
  25. return 0;
  26. }