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

From the book Pobre Ana, What are 5 questions you would like to ask her?
Isaac Newton and Robert Boyle were similar in which of the following ways? A. Both published early scientific works that led to the start of the scientific
8. What is the law of conservation of energy? Give at least one example.
The presentation ____ determines the formatting characteristics of fonts and colors.
how do you think wind can erode materials?
Which sentence demonstrates correct comma usage? a. John Peter Zenger, who published the New York Weekly Journal, was jailed in November 1734 for printing a tru
Analyze one cause and one affect of the rise of Islamic fundamentalism in the Middle East since World War II.
what changes in America can we see today that were created by this canal?
What is 3/5ths of 7?????
When we heard a loud, “BOOM,” we knew the thunderstorm had begun. A. Alliteration B. Cliche C. Oxymoron D. Onomatopoeia