Design and write a C program that performs the following functionality: 1. Prompt the user to enter a string of maximum 100 characters. Note: the string can contain spaces. 2. Read and store the string that can contain spaces. 3. Use a recursive function to display the characters in reverse and in four columns on the console. 4. For example, if the user is prompted and enters the following in the command line (italicized and in red): Enter a string of maximum 100 characters including spaces: this is a test 5. Write a recursive function that will produce the following output (in blue): tttt ssss eeee tttt aaaa ssss iiii ssss iiii hhhh tttt 6. Write and compile your code 7. Copy the code from IDE into Notepad to remove formatting and then copy and paste from Notepad into the Word document.
Design and write a C program that performs the following functionality:
1. Prompt the user to enter a string of maximum 100 characters. Note: the string can contain
spaces.
2. Read and store the string that can contain spaces.
3. Use a recursive function to display the characters in reverse and in four columns on the
console.
4. For example, if the user is prompted and enters the following in the command line
(italicized and in red):
Enter a string of maximum 100 characters including spaces: this is a test
5. Write a recursive function that will produce the following output (in blue):
tttt
ssss
eeee
tttt
aaaa
ssss
iiii
ssss
iiii
hhhh
tttt
6. Write and compile your code
7. Copy the code from IDE into Notepad to remove formatting and then copy and paste from
Notepad into the Word document.
Step by step
Solved in 2 steps