Asked by Jhon
1. Create a program which will allow the user enter ten numbers. The program is to count how many numbers were above 50. Hint: You will need to incorporate a Selection (If…then) statement.
Answers
Answered by
jolly rancher
i = 0
DO 10 times
i = i + 1
<<Prompt for number>>
<<Read and store number entered as number_i>>
end DO
i = 0; j = 0
DO 10 times
i = i + 1
IF number_i > 50 THEN j = j + 1
end DO
Display["Count of numbers exceeding 50 is: ", j]
DO 10 times
i = i + 1
<<Prompt for number>>
<<Read and store number entered as number_i>>
end DO
i = 0; j = 0
DO 10 times
i = i + 1
IF number_i > 50 THEN j = j + 1
end DO
Display["Count of numbers exceeding 50 is: ", j]
There are no AI answers yet. The ability to request AI answers is coming soon!
Submit Your Answer
We prioritize human answers over AI answers.
If you are human, and you can answer this question, please submit your answer.