fixed mistakes

This commit is contained in:
2025-07-10 21:56:52 +09:00
parent 4eec04bc1f
commit 36384238be
3 changed files with 6 additions and 8 deletions

View File

@@ -18,17 +18,15 @@ putchar('a'); // "a" が出力される
\defaultlistingstyle
\begin{lstlisting}[language=C,title={\texttt{break}\texttt{continue}}]
int i = 0;
while (i < 10) {
if (i % 3) {
continue;
}
if (i == 8) {
while (i < 10) {
if (i % 3 == 0)
continue;
if (i == 8)
break;
}
printf("%d ", i++);
}
// 出力0 1 2 4 5 7
// 出力1 2 4 5 7
\end{lstlisting}