Word Replacer

Ask the user to enter a sentence. Replace all instances of the word “bad” with “good” and print the result.
Example:
Input: That was a bad idea.
Output: That was a good idea.

Scroll to Top