ch 6/functions.c
//Function for printing word for the last digit

Function for printing word for the last digit
Function for printing word for the last digit
void last_word(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 last_word ( 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 word for the last digit
Function for printing word for the last digit