For loops Week 3

In todays lesson we learned about for loops and their differences with while loops, while loops are infinite which means it goes on for ever. Whereas for loops are finite which means it keeps going until it reaches its goal.

The image at the bottom right was my most challenging one to do, it made us create two variables of which one of them created the number of astrixes on a line and the other number creates the amount of rows needed to house the number of astrixes.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s