I've been trying to understand just how nested for loops work , so I thought i'd devise a simple one of my own, as in the code below:-
The thing is, I think the comments i've inserted next to the loops are indicative of their function , but, for example, how can I change this code, so that the word 'two', appears twice, i.e., like
one
one
two
two
I suppose this all stems from my misunderstanding of the whole concept, right?
(Marilyn added code tags to preserve formatting)
[ December 01, 2002: Message edited by: Marilyn de Queiroz ]
The thing is, I think the comments i've inserted next to the loops are indicative of their function , but, for example, how can I change this code, so that the word 'two', appears twice, i.e., like
one
one
two
two
I suppose this all stems from my misunderstanding of the whole concept, right?
(Marilyn added code tags to preserve formatting)
[ December 01, 2002: Message edited by: Marilyn de Queiroz ]