X472: halfInt

Given an int, return a double of precisely half the initial value. The int will need to be converted into a double before any other operations are performed.

Examples:

halfInt(4) -> 2.0

Your Answer:

Reset

Practice a different Java exercise

Feedback

Your feedback will appear here when you check your answer.