Remove spaces from a given string

In this program, we will take a string as input and remove spaces from a given string.

Steps to solve the program
  1. Take a string as input.
  2. Create an empty string.
  3. Add every character from the input string to the empty string except spaces.
  4. Print the output.

Output :

second most repeated word in a given string

capitalize the first and last letters of each word of a given string.

Leave a Comment