This commit is contained in:
2025-06-19 17:30:16 +09:00
parent 261688c4bc
commit 3a3c8f4675
27 changed files with 340 additions and 24 deletions

17
section/calc.tex Normal file
View File

@@ -0,0 +1,17 @@
\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}