From 085425e3b3017478cab5927cd0c2392aa988783b Mon Sep 17 00:00:00 2001 From: Antti H S Laaksonen Date: Sun, 19 Nov 2017 23:15:52 +0200 Subject: [PATCH] Add missing semicolon --- chapter01.tex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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";