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

Find the length of the arc round your answer to the nearest tenth
A firm wants to sponsor an engineering lab. This requires $2.5M to construct the lab, $1.2M to equip it, and $600,000 every 5 years for new equipment. What is t
What is the distance to the earth’s horizon from point P? Enter your answer as a decimal in the box. Round only your final answer to the nearest tenth
If PQRS is a parallelogram, what is the value of y S11R13P11 A. 44 B. 60 C. 52 D. 26 E. 48 F. Cannot be determined HELLPPPPPP
PLEASE HELPPPPPPP #1
In v. State of Connecticut, the Supreme Court ruled that married couples do have the right to use birth control. This is an example of how the Amendment, introd
Which of the following is not a feature of an outline? A. Arranges main ideas and subheadings B. Use numbers and letters only C. Plans sequence of details D. so
Find the volume of this sphere. I need help I don’t understand.
What is the value of y for the parallelogram shown? A. 38 B. 60 C. 22 D. 66​
PLEASE PLEASE HELP ME!! Entrepreneurs An Wang George Washington Carver Samuel F. B. Morse Margaret Hutchison Rousseau Choose one entrepreneur from this list. W