Challenge: Concatenate Words Starting With 'c'
This lesson will test your knowledge of Strings.
We'll cover the following
Problem Statement
The task requires you to find all words starting with a “c” in a string passed as a parameter. Concatenate them together and return the result.
Input
a String
Output
Output updated string
Sample Input
"This is a comprehensive course in Rust programming language on the Educative. Read it with full concentration to grasp the content of the course"
Sample Output
comprehensive course concentration content course
Coding Exercise
Write your code below. It is recommended that you try solving the exercise yourself before viewing the solution.
Note: There is a
test
function given in the code for testing purposes. Do not modify it.
Good luck! 🤞
Create a free account to access the full course.
By signing up, you agree to Educative's Terms of Service and Privacy Policy