#include <stdio.h>
#define MAX 15

int main(void) {
	// your code goes here
	char name[MAX];
	char c;
	int choice=1;
	while(choice>0 && choice<3)
	{
		printf("Enter your choice: ");
		scanf("%d", &choice);
		
		switch(choice)
		{
			case 1:
            			while ((c = getchar()) == '\n');
            			ungetc(c, stdin);
				printf("What is your name? ");
				fgets(name, MAX, stdin);
				if ((strlen(name) > 0) && (name[strlen(name) - 1] == '\n'))
                name[strlen(name) - 1] = '\0';
                printf("Hello %s. Nice to meet you.\n", name);
			break;
			
			
			case 2:
				printf("Your choice is case 2\n");
			break;
		}
	}
	return 0;
}
