ch 6/functions.c
//Function for printing one digit integer in words

Function for printing one digit integer in words
Function for printing one digit integer in words
void all_caps_word_single_digit(int n)
{
	switch(n)
		{
			case 0:
				printf("Zero\n");
				break;
			case 1:
				printf("One\n");
				break;
			case 2:
				printf("Two\n");
				break;
			case 3:
				printf("Three\n");
				break;
			case 4:
				printf("Four\n");
				break;
			case 5:
				printf("Five\n");
				break;
			case 6:
				printf("Six\n");
				break;
			case 7:
				printf("Seven\n");
				break;
			case 8:
				printf("Eight\n");
				break;
			case 9:
				printf("Nine\n");
				break;
		}
}
void all_caps_word_single_digit ( int n ) { switch ( n ) { case 0 : printf ( " \n " ) ; break ; case 1 : printf ( " \n " ) ; break ; case 2 : printf ( " \n " ) ; break ; case 3 : printf ( " \n " ) ; break ; case 4 : printf ( " \n " ) ; break ; case 5 : printf ( " \n " ) ; break ; case 6 : printf ( " \n " ) ; break ; case 7 : printf ( " \n " ) ; break ; case 8 : printf ( " \n " ) ; break ; case 9 : printf ( " \n " ) ; break ; } }
Function for printing one digit integer in words
Function for printing one digit integer in words