Jul-31-2021, 02:17 PM
(Jul-31-2021, 01:47 PM)ndc85430 Wrote:(Jul-31-2021, 01:45 PM)Sherine Wrote: "i in range (1, n)"
the n = 5,
so why the loop is not going until 4? it's only 3.
How are you determining that the loop only goes up to 3 and not 4? Have you printed out the value ofi
on each iteration? Show us that output; it should be going to 4.
Since the quiz explanation are
1,1 ; 1,2 ; 1,3
2,1 ; 2,2
3,1
so I just wondering why no 4 in this explanation.
However, now I clear with that already.
Thanks for your reply.