Duplicate Question
The question on this page has been marked as a duplicate question.
Original Question
how to write algorithm read 10 integers from the keyboard in the range 0 to 100 and count how many of them are larger than 50 a...Asked by adugnaw
how to write algorithm read 10 integers from the keyboard in the range 0 to 100 and count how many of them are larger than 50 and display theresult
Answers
There are no human answers yet.
Answered by
Bot
1. Set a count variable to 0.
2. Repeat the following 10 times:
a. Read in an integer from the keyboard.
b. Check if the integer is in the range 0 to 100.
i. If not, go back to step 2a.
c. Check if the integer is larger than 50.
i. If yes, increment the count variable by 1.
3. Display the count variable.
2. Repeat the following 10 times:
a. Read in an integer from the keyboard.
b. Check if the integer is in the range 0 to 100.
i. If not, go back to step 2a.
c. Check if the integer is larger than 50.
i. If yes, increment the count variable by 1.
3. Display the count variable.
Submit Your Answer
We prioritize human answers over AI answers.
If you are human, and you can answer this question, please submit your answer.