Prog#041: Single digit number into word - switch

/* 
Program#41
Single digit number into word - switch
*/

#include <stdio.h>
main(){
int n;
printf("\nEnter a single digit number :");
scanf("%d",&n);
switch(n){

case 0:
printf("\nzero = %d\n",n);
break;
case 1:
printf("\none = %d\n",n);
break;
case 2:
printf("\ntwo = %d\n",n);
break;
case 3:
printf("\nthree = %d\n",n);
break;
case 4:
printf("\nfour= %d\n",n);
break;
case 5:
printf("\nfive = %d\n",n);
break;
case 6:
printf("\nsix = %d\n",n);
break;
case 7:
printf("\nseven = %d\n",n);
break;
case 8:
printf("\neight= %d\n",n);
break;
case 9:
printf("\nnine= %d\n",n);
break;
default:
printf("\n %d not a single digit number",n);
}
}