A Program instruction that repeats some sequence of
statement in a specified number of times. Below are some examples of simple for
loop.
Example No 3. Reversing the Numbers of Column A in Column B. The numbers to be outputted in column A are 1, 2, 4 and 8.
Example No 4. Row ODD is 1 and row EVEN is 0. The numbers to be outputted in column A are 1, 2, 4 and 8.
Example No 5. Row ODD is 0 and row EVEN is 1. The numbers to be outputted in column A are 1, 2, 3 and 4.
No comments:
Post a Comment