Answered You can hire a professional tutor to get the answer.

QUESTION

Whats the best way to do these?

Whats the best way to do these?

1.  Assume that the int variable num contains a positive value if writing an if- statement that displays

"multiple of 5" if the variable num is a multiple of 5.

 while (n > 0)

        n = n - 5;

    if (n == 0)

        return true;

    return false;

2.  Assume that the int variable num contains a positive value  if writing an if statement that displays "true" if the variable num is a multiple of 3 but is not a multiple of 24.

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question