14 lines
307 B
TeX
14 lines
307 B
TeX
\section{演習 4-13}
|
|
|
|
1から$n$までの総和を求めるプログラム。
|
|
|
|
\subsection{コードリスティング}
|
|
|
|
\lstinputlisting[language=C,title={演習 4-13}]{../programs/p413/main.c}
|
|
|
|
\subsection{実行結果}
|
|
|
|
\begin{center}
|
|
\includegraphics[width=\textwidth]{./assets/p413.png}
|
|
\end{center}
|