edits
This commit is contained in:
parent
5a70784dda
commit
5f7a8bb6b7
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user