Question: 2. (Prata Chap. 11, Problem 10). Write a function that takes a string as an argument and removes the spaces from the string. Test it
2. (Prata Chap. 11, Problem 10). Write a function that takes a string as an argument and removes the spaces from the string. Test it in a program that uses a loop to read lines until you enter an empty line. The program should apply the function to each input string and display the result
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
