#include <stdio.h>

int main(void) {

	
// Ask the user to enter his/her name
char name[10];
printf("Enter your name: ");
fgets(name, 10, stdin);
printf("Hello %s! \n", name);

// Ask the user to enter his/her age
int age;
printf("Enter your age: ");
scanf("%d", &age);
printf("You are %d \n", age);

if (age <= 20) {
	printf("You're a youngster!");
}

// If the user is over 20, but under 61, display the name and age, and tell the user he/she is an adult.
if (age < 20 ) {
	printf("You're an adult!");
}
if (age > 61) {
	printf("You're an adult!");
}

// If the user is over 60, display the name and age, and tell the user he/she is getting on in years. 
if (age > 60 ) {
	printf("You're getting on in years!");
}

 else {
     printf("Sorry! There is no way to determine how old you are! \n");
}

return 0;
}