volume_mute

What is the input for the code to print "Positive Number"?

publish date2020/10/27 19:46:00 GMT+11

volume_mute
A number greater than or equal 0
exactly 1
A number greater than 0
Numbers greater than 0 up to 100

Correct Answer

A number greater than 0

Explanation

Condition in line 7 is as simple as testing if a number is greater than 0.  The code is simple and does not cater for exceptions and invalid inputs


Quizzes you can take where this question appears