Questions


June 2021 2 44 Report
Write a method that takes as paramater an integer. This integer is a 2 digit number.

Depending on the value of the number, print the English word for this number.

Only write the method - assume that the Class & main method have been defined.

Use the System.out.println() statement for printing.

Example Input: 45
Output: forty-five
Example Input: 13
Output: thirteen
Example Input: 87
Output: eighty-seven

Answers & Comments


Add an Answer


Please enter comments
Please enter your name.
Please enter the correct email address.
You must agree before submitting.

Helpful Social

Copyright © 2024 EHUB.TIPS team's - All rights reserved.