## News:

Take a look at what's going on, at The Town Crier!

## Tutorial Group One

Started by Lizard, August 21, 2012, 10:17:07 PM

#### Lizard

This is the area for Tutorial Group One to discuss course notes, exercises, and anything else you need to in order to finish things successfully. I'll be dropping by on occasion to sort out anything that you can't sort yourselves/clear up issues that most people are struggling with.

Keep it above board, kids, and have fun!
A coder, a hoodie, a coffee pot, a robot.

"A ship in port is safe, but that is not what ships are built for."

I've got everything working like in your initial tutorial(s). Looking forward to the next step!

#### Othko97

As above.
I am Othko, He who fell from the highest of places, Lord of That Bit Between High Places and Low Places Through Which One Falls In Transit Between them!

#### Lizard

Excellent stuff! New course notes are up, btw.

Everything alright with everyone? Notes written clearly enough, etc?
A coder, a hoodie, a coffee pot, a robot.

"A ship in port is safe, but that is not what ships are built for."

On the repetition thing I got the 1-10 printout by changing the (int i = 0; i < 10; i++) to (int i = 1; i < 11; i++).
Then I did (int i = 10; i > 0; i--) to make it count backwards.

#### Lizard

Quote from: comrade_general on September 04, 2012, 12:20:34 AM
On the repetition thing I got the 1-10 printout by changing the (int i = 0; i < 10; i++) to (int i = 1; i < 11; i++).
Then I did (int i = 10; i > 0; i--) to make it count backwards.

Good solutions.

You could also have done (int i = 1; i <= 10; i++) - for a nice example of the use of different comparison operators!
A coder, a hoodie, a coffee pot, a robot.

"A ship in port is safe, but that is not what ships are built for."

#### Othko97

I did for(i = 1; i <= 10; i++).
I am Othko, He who fell from the highest of places, Lord of That Bit Between High Places and Low Places Through Which One Falls In Transit Between them!