15 lines
406 B
TeX
15 lines
406 B
TeX
\section{演習 3-11}
|
|
|
|
論理OR演算子を使用して2つの整数値の差が10以下であるか、11以上であるかを検証するプログラム。
|
|
|
|
\subsection{コードリスティング}
|
|
|
|
\defaultlistingstyle
|
|
\lstinputlisting[language=C,title={演習 3-11}]{../programs/p311/main.c}
|
|
|
|
\subsection{実行結果}
|
|
|
|
\begin{center}
|
|
\includegraphics[width=\textwidth]{./assets/p311.png}
|
|
\end{center}
|