23 lines
418 B
C
23 lines
418 B
C
#include <stdio.h>
|
|
|
|
int main() {
|
|
int score = 0;
|
|
|
|
char playerName;
|
|
int playerAge;
|
|
|
|
printf("Welcome to my quiz!\n");
|
|
|
|
printf("What is your name: ");
|
|
scanf("%s", &playerName);
|
|
printf("\n");
|
|
|
|
printf("What is your age: ");
|
|
scanf("%d", &playerAge);
|
|
printf("\n");
|
|
|
|
printf("Hello %c! You are %d years old. Your current score is: %d", playerName, playerAge, score);
|
|
|
|
return 0;
|
|
}
|