14 lines
374 B
TeX
14 lines
374 B
TeX
\section{演習1ー6}
|
|
|
|
プロンプトから読み込んだ整数値から7を減じた値を表示するプログラム。
|
|
|
|
\subsection{コードリスティング}
|
|
\defaultlistingstyle
|
|
\lstinputlisting[language=C,title={演習1ー6}]{../programs/prog2/main.c}
|
|
|
|
\subsection{実行結果}
|
|
|
|
\begin{center}
|
|
\includegraphics[width=\textwidth]{./assets/prog2.png}
|
|
\end{center}
|