For Loops Worksheet #1
For Loops Worksheet #1
DIRECTIONS : Fill in each blank with the correct answer/output. Assume each
statement happens in order and that one statement may affect the next
statement.
Some sections might print more than once.
4. _________________________________
int total=0;
for(int s=1; s<19; s++)
{
total=total+s;
}
out.println(total);