← Back to User Input
Question 177
Half Of A Number
Half Of A Number
Read a whole number and print half of it as a float in the form Half of <num> is <half>, so 9 gives 4.5 and 10 gives 5.0; use the single slash so the result is always a float. Input: one line, an integer, no prompt.
Expected Output:
Half of 9 is 4.5= newline. The output ends with a newline — print one after the last line.
Hints2 available
Sign in to use hintsTopics:
User Input
1
Tab to indent (Esc then Tab to move on) · Ctrl+Enter to run · Ctrl+Space to expand shortcuts (pr, inp, def)
Your Output
Run your code to see the output here...
Test Cases
Run your code to see test case results.