Any of the expressions initialization, Boolean-expression or step can be empty. The expression is tested before each iteration, and as soon as it evaluates to false execution will continue at the line following the for statement. At the end of each loop, the step executes. Comment
for loops are usually used for “counting” tasks:
So if you'd like the loop to count from 0 to 100, you'd do something like this:
Now try to write a program that will print all the uppercase letters of the alphabet from the ASCII table.
And I understand it tells me what is wrong, however I don't know what those errors mean or where to put the corrections either, so it's a bit frustrating. My entire class is behind, as our teacher goes really fast, like we should already know this stuff. He is the only teacher that teaches computer science, and my school has no tutoring available, so I'm not really getting the logistics of it.
Joined: Feb 10, 2013
Oh yeah, and thanks for the welcome, Campbell Ritchie.