Search
Doprovodné materiály pro 4. cvičení: cykly.pdf
17 4 0 14 16 0 12 8 17 6 15 8 16 10 11 19 4 3 2 1 0 12 17 7 15 18 5 16 13 1 5 6 4 15 2 3 8 13 7 1 13 0 6 18 13 9 12 20 3 13
for
while
do-while
break
n
1, -1, 1, -1, 1, -1, ...
$$ \qquad\pi = 4 \sum_{k=0}^\infty\dfrac{(-1)^k}{2k+1} = \dfrac{4}{1}-\dfrac{4}{3}+\dfrac{4}{5}-\dfrac{4}{7}+\dfrac{4}{9}-\dfrac{4}{11}+\cdots $$