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 measure of spread is the most appropriate for the data set represented by the graph? Number of Chocolates 11- 10- 9 8- 7 9 S ST 3 2- 1 2 3 4 5 678 Number
Is it possible to write the equation of this rational function? If so, what is it?
When 300 apple trees are planted per acre, the annual yield is 1.6 bushels of apples per tree. For every 20 additional apple trees planted, the yield reduces by
In your free time, what do you like to do?
HELP!! WILL GIVE 100 points.Which term describes this molecular shape?A. TetrahedralB. LinearC. Trigonal PlanarD. Bent
does anyone know how to answer this?​​
Propón medidas que preparen as poboacións dunha zona con alto risco sísmico para minimizar os danos en caso de terremoto. Indica a que profesionais recorrerías
Which word describes reformer's efforts to reduce or eliminate alcohol consumption? A) rumination B) rumination C) deliverance D) temperance Answer: D) Tempera
What was a shortcoming of the Agricultural Adjustment Act (AAA). A. It curtailed the agricultural output and affected exports. B. It brought in mechanizatio
Cual es la diferencia entre altura y altitud?