Asked by Anonymous
Develop algorithm to print all even numbers below 100 in descending order
Answers
Answered by
oobleck
n=100
loop {
n -= 2
if n < 0 then break;
print n
}
I assume you do not want the negative numbers -- that could take a while ...
loop {
n -= 2
if n < 0 then break;
print n
}
I assume you do not want the negative numbers -- that could take a while ...
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.