Code Snippets C

#include
int main(void)
{
int i;
printf("Enter a number between 1 and 4: ");
scanf("%d", &i);
switch(i) {
case 1:
printf("A");
break;
case 2:
printf("B");
break;
case 3:
printf("C");
break;
case 4:
printf("D");
break;
default:
printf("Unrecognized Number");
}
return 0;
}