diff --git a/chapter01.tex b/chapter01.tex index 0929d46..7eea253 100644 --- a/chapter01.tex +++ b/chapter01.tex @@ -328,7 +328,7 @@ For example, the following code calculates $n!$, the factorial of $n$, modulo $m$: \begin{lstlisting} long long x = 1; -for (int i = 2; i <= n i++) { +for (int i = 2; i <= n; i++) { x = (x*i)%m; } cout << x%m << "\n";