ch 6/functions.c
//Function for printing the first digit word of a 2 or more digits integer

Function for printing the first digit word of a 2 or more digits integer
Function for printing the first digit word of a 2 or more digits integer
void all_caps_word(int n)
{
	switch(n)
		{
			case 0:
				printf("Zero ");
				break;
			case 1:
				printf("One ");
				break;
			case 2:
				printf("Two ");
				break;
			case 3:
				printf("Three ");
				break;
			case 4:
				printf("Four ");
				break;
			case 5:
				printf("Five ");
				break;
			case 6:
				printf("Six ");
				break;
			case 7:
				printf("Seven ");
				break;
			case 8:
				printf("Eight ");
				break;
			case 9:
				printf("Nine ");
				break;
		}
}
void all_caps_word ( int n ) { switch ( n ) { case 0 : printf ( " " ) ; break ; case 1 : printf ( " " ) ; break ; case 2 : printf ( " " ) ; break ; case 3 : printf ( " " ) ; break ; case 4 : printf ( " " ) ; break ; case 5 : printf ( " " ) ; break ; case 6 : printf ( " " ) ; break ; case 7 : printf ( " " ) ; break ; case 8 : printf ( " " ) ; break ; case 9 : printf ( " " ) ; break ; } }
Function for printing the first digit word of a 2 or more digits integer
Function for printing the first digit word of a 2 or more digits integer