jewelscott3530 jewelscott3530
  • 07-08-2018
  • Mathematics
contestada

Write a pseudocode that prompts the user to keep read numbers until 0 entered, and find how many of those numbers are odd and how many are even

Respuesta :

Аноним Аноним
  • 07-08-2018

Start

Read number n.

When n = 0 go to End.

Compute r = n / 2,

If decimal part of r = 0 add 1 to Even-count

else add 1 to odd-count

endif

Go to Start

End

Print Even count , Odd count

Stop.

Answer Link

Otras preguntas

Which of the following could prevent ear muffs from providing your ears good protection from noise
Is the function shown in the graph one-to-one? No, there exists more than one input for at least one output. Yes, there exists one input for every output. No, t
s(v)=4v+12 solve equation
need the answer to this property of division problem? 1912÷a=956
As marine animals swim in the ocean, their muscles are doing work and converting energy from the animals' food into which of the following types of energy?A) NU
what is a31 of the arithmetic sequence for which a5=3.2 and a9=12.0
What event was The Bay of Pigs invasion a response to? A.) Soviet placement of missiles in Cuba B.) Kennedy's election as president C.) Castro's rise to power i
Find 6 times as many as 2 divided by 6
HELP ASAP, WILL AWARD BRAINEST, ALL YOU HAVE TO DO IT WRITE DOWN THE ANSWER,( NO WORK NEEDED)Question 1 Lara wants to know if the number of words on a page in h
which text is valuable for gaining context about historical events but is unrelaiable as evidence