Priting some of the for loop results (but not all of them)
I've encountered the following problem:
Inside a for loop I calculate recursively the members of a mathematical series, so that the result of each new calculation is dependant on the previouos calculation. I need to print (in one step) the calculation results for n = 1, 10, 100 and 1000 only, without printing all the calculations of the loop. How do I do that - I'm a beginner so I only know how to print each and every step of the calculation.