Ask Question
31 July, 04:05

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

+3
Answers (1)
  1. 31 July, 04:25
    0
    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.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “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 ...” in 📗 Mathematics if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers