christianbabona christianbabona
  • 19-03-2017
  • Computers and Technology
contestada

if num is an int which expression always evaluates to true if num holds an odd number

Respuesta :

xjkbel
xjkbel xjkbel
  • 20-03-2017

num%2==1

The modulo operator (%) divides the left hand side by the right hand side and returns the remainder. When dividing an odd number by 2 there will always be a remainder of 1.

Answer Link

Otras preguntas

(8^2)^4 I'm struggling in my math and need help please
How to solve 7=9.5sinB
Did I do everything right on the binder paper?
Which of the following statements about the nitrogen cycle is true? ammonification is the decomposition by bacteria of ammonia into nitrogen and hydrogen gases.
Which is not a function of cerebrospinal fluid? csf helps to remove waste products from the brain. csf transports nutrients and chemicals to the brain. csf help
The bar chart shows the percentage of adults in the us living with certain heart do risk factors which conclusion can be drawn from the chart
Describe how you could draw a diagram for a problem about finding the total length for two strings, 15 inches long and 7 inches long?
which document guarantees freedom of speech the right to bear arms and protection from unreasonable search and seizure
How do you simplify this?
A zucchini plant in Darnell’s garden was 10 centimeters tall when it was first planted. Since then, it has grown approximately 0.5 centimeters per day. a. Choos