Question: What does the following code display if number has the value 3 6 ? if ( number % 2 = = 0 ) System.out.print (

What does the following code display if number has the value 36?
if (number%2==0)
System.out.print("A");
else if (number%3==0)
System.out.print("B");
else if (number%6==0)
system.out.print("C");
Select one
A. A
B.B
C. C
D. ABC
E. nothing, this is an error
 What does the following code display if number has the value

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!