Hi, why is the range of for loop is [2, num+1], I can understand 2, but I cannot understand num+1
Hi, we write num+1
in order to run the loop till num. E.g if num = 5
then this loop will run from 2 to 5, both inclusive.
Got it! Thank you very much!