What is the input for the code to print "Positive Number"?https://go-math-science.com/computing/programming-languages/java/quiz-5-java-conditions/what-is-the-input-for-the-code-to-print-positive-numberhttps://go-math-science.com/@@site-logo/logo-new.png
volume_mute
What is the input for the code to print "Positive Number"?
publish date: 2020/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