Consider the following code

1.3 Consider the following code
if ( number >= 0)
if (number > 0)
System.out.println(“Number is positive”);
else
System.out.println(“Number is negative”);
What will be the output if number is equal to 0?
A) Number is negative
B) Number is positive
C) Both A) and B)
D) None of the above

Leave a Reply