Remove Spaces
Submissions: 18997   Accuracy:

27.12%

  Difficulty: School   Marks: 0
*School Problem's Submission isn't counted in score!

Given a string, remove spaces from it

Input: First line of the input is the number of test cases T. And first line of test case contains a string whose spaces are to be removed.

Output:  Modified string without any space

Constraints:  Input String Length <= 1000

Example:
Input:
2
geeks  for geeks
    g f g

Output:
geeksforgeeks
gfg

** For More Input/Output Examples Use 'Expected Output' option **

Author: kartik


If you have purchased any course from GeeksforGeeks then please ask your doubt on course discussion forum. You will get quick replies from GFG Moderators there.



Need help with your code? Please use ide.geeksforgeeks.org, generate link and share the link here.


to report an issue on this page.