18 lines
466 B
TeX
18 lines
466 B
TeX
\section{簡易電卓}
|
|
|
|
2つの実数を入力し、四則演算を指定し、小数点6桁で結果を表示する。0 divも考慮すること。
|
|
|
|
\subsection{コードリスティング}
|
|
|
|
\lstinputlisting[language=C,title={簡易電卓}]{../programs/calc/main.c}
|
|
|
|
\subsection{実行結果}
|
|
|
|
\begin{center}
|
|
\includegraphics[width=\textwidth]{./assets/calc-1.png}
|
|
\end{center}
|
|
|
|
\begin{center}
|
|
\includegraphics[width=\textwidth]{./assets/calc-2.png}
|
|
\end{center}
|