Ask Question
14 April, 10:18

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

+2
Answers (1)
  1. 14 April, 12:12
    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 you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers