how can i make a program which will use user input. The program should be called PrintNumberToWordie which prints “ONE”, “TWO”,… , “FIVE” UP to TEN if the int variable “number” is 1, 2,… , 5, 10, respectively i need to code for the else/default option if no match is found. This program must Use (a) a “nested-if” statement to complete; (b) Secondly the program must have an additional if statement to check to see if the user input is divisible by 2. The 2nd program i need to Convert Program #1 into using some sort of switch- case statement this program should be name PrintNumberToWordie2Hints:
how can i make a program which will use user input. The program should be called PrintNumberToWordie which
prints “ONE”, “TWO”,… , “FIVE” UP to TEN if the int variable “number” is 1, 2,… , 5, 10, respectively i need to code for the else/default option if no match is found. This program must Use (a) a “nested-if” statement to complete; (b) Secondly the program must have an additional if statement to check to see if the user input is divisible by 2.
The 2nd program i need to Convert Program #1 into using some sort of switch- case statement this program should be name PrintNumberToWordie2Hints: