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

1 answer

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.