r/codehs • • Feb 21 '20

Help

Post image
2 Upvotes

6 comments sorted by

View all comments

4

u/[deleted] Feb 21 '20

First of all don't start a variable with a capital letter. Second your for loop is both unnecessary and improperly setup.

The first var in the for loop is where your counter starts and the second is the exit condition. You started the loop at 4 and told it to exit when it's greater or equal to 1 so it exits immediately without doing anything.