Algorithm to print all even numbers below hundred in the descending order

2 answers

for i = 100 to 0 step -2 ; print i;

assuming you don't want to go on forever with the negative ones ...
Algorithm to print all even numbers below 100 in the descending order.
Similar Questions
    1. answers icon 1 answer
    1. answers icon 1 answer
  1. QuestionGiven the code for the recursive algorithm that sums the sequence of numbers from one to one hundred: def sum(n): if n <
    1. answers icon 7 answers
    1. answers icon 1 answer
more similar questions