Write a program using a function and a series of ifelse


Program: Write a program using a function and a series of if...else statements.

The user should be prompted to enter a number in main.

The function is called and the number entered is passed to the function. This function parameter will then be used in a series of if...else statements to discover and print out the number word within the function (for example, 1=one, 2=two, 3=three, etc.).

Enter a number: 1

You entered the number one.

You may decide to limit the number entered by the user to a particular range. Make sure to prompt the user with this range, so you can deal with correct and incorrect numbers entered.

Be sure to include comments. Comments should be included in the program to explain your calculations and program.

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: Write a program using a function and a series of ifelse
Reference No:- TGS0952034

Expected delivery within 24 Hours