This code takes a string as input from the user, splits it on spaces into an array, then removes any repeated words by comparing strings and shifting elements up. It prints the unique words one per line.
This code takes a string as input from the user, splits it on spaces into an array, then removes any repeated words by comparing strings and shifting elements up. It prints the unique words one per line.
This code takes a string as input from the user, splits it on spaces into an array, then removes any repeated words by comparing strings and shifting elements up. It prints the unique words one per line.