15 lines
385 B
TeX
15 lines
385 B
TeX
\section{演習 2ー1}
|
|
|
|
2つの整数値を読み込み、前者の値が後者の何\%であるかを表示するプログラム。
|
|
|
|
\subsection{コードリスティング}
|
|
|
|
\defaultlistingstyle
|
|
\lstinputlisting[language=C,title={演習 2ー1}]{../programs/prog1/main.c}
|
|
|
|
\subsection{実行結果}
|
|
|
|
\begin{center}
|
|
\includegraphics[width=\textwidth]{./assets/prog1.png}
|
|
\end{center}
|