Add missing semicolon
This commit is contained in:
parent
5dd049c3a2
commit
085425e3b3
|
@ -328,7 +328,7 @@ For example, the following code calculates $n!$,
|
||||||
the factorial of $n$, modulo $m$:
|
the factorial of $n$, modulo $m$:
|
||||||
\begin{lstlisting}
|
\begin{lstlisting}
|
||||||
long long x = 1;
|
long long x = 1;
|
||||||
for (int i = 2; i <= n i++) {
|
for (int i = 2; i <= n; i++) {
|
||||||
x = (x*i)%m;
|
x = (x*i)%m;
|
||||||
}
|
}
|
||||||
cout << x%m << "\n";
|
cout << x%m << "\n";
|
||||||
|
|
Loading…
Reference in New Issue