The first example is functionally correct but you have a loop that does one iteration, which is the same as no loop at all. The second example just prints "I have 1 sheep" six times.
Consider some...
Type: Posts; User: trcooke
The first example is functionally correct but you have a loop that does one iteration, which is the same as no loop at all. The second example just prints "I have 1 sheep" six times.
Consider some...
Ok, we've established the requirements. What have you got so far? What part exactly are you stuck on?