This lesson, we learned one of the most crucial parts of programming; how to use a for loop.The for loop is the way we get the computer to do lots of cool things that would take us ages to get done, like printing out the numbers from 1 to 100, or 1 to 1000. The included assignments will be similar to what we were able to get done in class. Assignment 1 is very similar to the activity in class in which we had the loop sum the numbers between X and Y (where X and Y are numbers we gave the computer). Assignment 2 will require you to use your knowledge of if statements and the modulus operator. If you've never heard of the modulus operator, try reading this article on what a Remainder in division is. The modulus operator returns the remainder of a division operation. |

Bronze Classes > Essentials Assignments >