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

She broke a chair.Change it into passive ​
explain how water properties help get water from the roots of plants to leaves
How do plays differ from other stories? will pay give me cash app They are written to be performed on a stage. They include events that are unrelated to the con
17. What is the Reconstruction Finance Corporation (RFC)
GIRLS--- PERIOD HELP What is the best way that you use that gets rid of period cramps- fast or just as long as it works within half an hour. ??? help a girl out
I hate......nothing Ha tricked y'all
How many letters represent the k sound in spanish? Which ones?
which which alkane may be obtained by the reduction of 2 bromopropane
Ralph received an inheritance of $30,000 from his aunt’s estate. He then bought a used sports car from Sid and paid $25,000 cash. Shortly thereafter, Ralph real
what is 10 +20-9+2+8-3 first to answer will get brainlyest