What Is a Recursive Function?
Time limit1sMemory limit256 MB
Given N, print the chatbot message 'What is a recursive function?' repeated with nested quotation marks for N levels of recursion.
- Level
Easy2 of 10
- Topics
- Implementation, String, Recursion
- Solved
- No attempts yet
Problem
Professor JH of Chung-Ang University is famous for always taking questions kindly, and over the years students have asked him many questions about what a recursive function is.
Even though he always answered them kindly, Professor JH kept worrying about whether Chung-Ang University was the right place for him.
Convinced that Chung-Ang University and his own path did not fit together, Professor JH finally decided to leave the university.
Even as he was leaving, Professor JH still thought of his students, and he decided to prepare an automatic response chatbot as a small gift for the students who ask what a recursive function is.
Write a program that prints the responses of the chatbot Professor JH is going to make.
Input
The number of recursions N (1 ≤ N ≤ 50) that the professor wants printed is given.
Output
Looking at the sample output, print the chatbot's responses for the given number of recursions.