Ask a Teacher



Write an algorithm to display the even numbers upto 100 in the reverse order. That 1s, the output should be 100, 98, 96, ....... .... , 4, 2.

Step 1: Start
Step 2: Input N = 100
Step 3: If N<=1, go to step 5
Step 4: if N%2=0, Print N
              N=N-1, go to step 3
step 5: End


comments powered by Disqus