In a for loop, if we start with 0, then the terminating condition is i less than n.
However, ifvit starts at 1, then the terminating condition is i less than or equal to n.
What mental trick do you use to remember that?
In a for loop, if we start with 0, then the terminating condition is i less than n.
However, ifvit starts at 1, then the terminating condition is i less than or equal to n.
What mental trick do you use to remember that?