brittneyaxel3011 brittneyaxel3011
  • 09-06-2019
  • Computers and Technology
contestada

Write an expression that evaluates to true if the integer variable x contains an even value, and false if it contains an odd value

Respuesta :

jcherry99
jcherry99 jcherry99
  • 09-06-2019

Answer:

Explanation:

I don't know what language you use, but mod is a common command in almost all of them. You could write it like this

for x = 1 to 10 do begin

 if x mod 2 = 0 then print x " is even."

 id x mod 2 = 1 then print x  " is odd."

end;

Answer Link

Otras preguntas

compare the ratios of corresponding sides. what do you notice?Pre Image Image________ _________ A (-6,3) A (-2,1)B (6,3)
after 1890 from where the most European immigrants come
Free Points!!!! (20pts) If you have 5 fish and 3 of them drown how many fish do you have left? Now take that number of fish and add and additional 8 fish Now of
what are some non examples of imperialism? give two
How are mask used in Southern Africa?
HELP! ASAP!!!! Use a calculator to solve the equation. −9.5x + 0.88 = −6.72
The atomic theory proposed by dalton has been
Is y=x^2 -1 linear and, if so is it proportional or nonproportional.
What expression is equivalent to
Given the table find M