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!
I've got everything working like in your initial tutorial(s). Looking forward to the next step! :)
As above. :D
Excellent stuff! New course notes are up, btw.
Everything alright with everyone? Notes written clearly enough, etc?
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.
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!
I did for(i = 1; i <= 10; i++). ;D