14 lines
490 B
TeX
14 lines
490 B
TeX
\section{演習課題4}
|
||
|
||
3つのint型整数y,m,dを宣言し,yは誕生年,mは誕生月,dは誕生日で初期化し,y+m+dの値を「○○○○の生年月日の和は****です.」と表示するプログラム
|
||
|
||
\subsection{コードリスティング}
|
||
\vspace{-0.5cm}
|
||
\lstinputlisting[language=C, title={演習課題4}]{../programs/prog4.c}
|
||
|
||
\subsection{実行結果}
|
||
|
||
\begin{center}
|
||
\includegraphics[width=\textwidth]{./assets/prog4_output.png}
|
||
\end{center}
|