Skip to content

Files

Latest commit

Aug 15, 2018
97bc265 · Aug 15, 2018

History

History

String Split and Join

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Aug 15, 2018
Aug 15, 2018

String Split and Join

You are given a string. Split the string on a " " (space) delimiter and join using a - hyphen.

Input Format
The first line contains a string consisting of space separated words.

Output Format
Print the formatted string as explained above.

Sample Input
this is a string

Sample Output
this-is-a-string