diff --git a/main.c b/main.c index b72bb42..3ee66c8 100644 --- a/main.c +++ b/main.c @@ -1,20 +1,22 @@ #include int main() { - char characterName; - int characterAge; + int score = 0; + + char playerName; + int playerAge; printf("Welcome to my quiz!\n"); printf("What is your name: "); - scanf("%s", &characterName); + scanf("%s", &playerName); printf("\n"); printf("What is your age: "); - scanf("%d", &characterAge); + scanf("%d", &playerAge); printf("\n"); - printf("Hello %c! You are %d years old.\n", characterName, characterAge); + printf("Hello %c! You are %d years old. Your current score is: %d", playerName, playerAge, score); return 0; }