Write an algorithm to print all the even numbers from 1 to 100.
PseudoCode:
1 2 3 4 5 6 7 8 9 10 |
BEGIN NUMBER counter FOR counter = 1 TO 100 STEP 1 DO OUTPUT counter ENDFOR END |
Flow Chart:
Write an algorithm to print all the even numbers from 1 to 100.
PseudoCode:
1 2 3 4 5 6 7 8 9 10 |
BEGIN NUMBER counter FOR counter = 1 TO 100 STEP 1 DO OUTPUT counter ENDFOR END |
Flow Chart: