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 colony adopted a plan to gradually free enslaved people
Based upon the pH scale, a vegetable with a pH of 5.3 would be A. neutral. B. ionic. C. acidic. D. basic.
An oral report should have a minimum of A. five pages of information. B. three sub-topics supporting the thesis. C. three specific examples from the text. D. a
A train traveling 80.0 kph is blowing its horn as it approaches a railroad crossing. The horn has a frequency of 300.0 Hz. Assume the speed of sound is 331.5 m/
A "compound" is something made up of two or more pieces. What are the two pieces that make up James Madison's compound government?
What is 5% tax as a decimal and fraction?
All of the following were early twentieth century reforms enacted by many states to help the poor EXCEPT: a. compulsory school attendance laws c. workmen's comp
Which name does not apply to the figure? A. quadrilateral B. square C. parallelogram D. rhombus BTW the figure is a rhombus
By the early 1900s, Germany had worsening relations with all of the following EXCEPT: a. France b. Great Britain c. Austria-Hungary d. Russia.
What are different types of expenditure and examples of each