I often forget what I wanted to say when the teacher calls on me to speak. Can you make me a tool to solve this?
- The program must loop as follows:
- First, take in input
- If the input is empty, print the last stored question.
- Otherwise, store the input as a question.
- The input will never be empty if there are no questions stored.
Clarification: The program does not need to store multiple questions. I originally wanted it to store multiple, but I changed it after many people misunderstood the question.
Remember, this is code-golf, so the code with the smallest number of bytes wins.