Assume the integer variable num has been assigned a valid value. what is the purpose of the following code segment?
if(num % 4 > 0)
system.out.print(num);
1.)it prints num if it’s value is a multiple of 4
2.)it prints num if it’s value is not a multiple of 4
3.)it always prints the value of num
4.)it never prints the value of num
5.)an error occurs at compile time

Solved
Show answers

Ask an AI advisor a question