This commit is contained in:
Mark 2025-01-19 15:11:36 -08:00
parent 5a70784dda
commit 5f7a8bb6b7
Signed by: Mark
GPG Key ID: C6D63995FE72FD80

View File

@ -18,7 +18,7 @@ Turing's eight symbols are as follows:
\item \texttt{,} : consume one character from input and store it at the current cell \item \texttt{,} : consume one character from input and store it at the current cell
\item \texttt{[} : Jump to the matching \texttt{]} if the current cell is zero. \par \item \texttt{[} : Jump to the matching \texttt{]} if the current cell is zero. \par
otherwise, execute the next instruction. otherwise, execute the next instruction.
\item \texttt{[} : Jump back to the matching \texttt{]} if the current cell is not zero. \par \item \texttt{]} : Jump back to the matching \texttt{[} if the current cell is not zero. \par
otherwise, execute the next instruction. otherwise, execute the next instruction.
\item All other characters are ignored. \item All other characters are ignored.
\end{itemize} \end{itemize}
@ -106,7 +106,9 @@ Write a program that repeats the user's input exactly as it is entered.
\end{solution} \end{solution}
\problem{} \problem{}
Write a program that repeats the user's input in reverse Write a program that repeats the user's input in reverse \par
\hint{You may use as many memory cells as you need---the editor will add more as you use them.}
\vfill \vfill
\pagebreak \pagebreak