HusnaSari / Algorithms

MIT License
1 stars 1 forks source link

Replace function #21

Open emrerenJs opened 2 years ago

emrerenJs commented 2 years ago

Read a word or a sentence and 2 character from console. First character is the searched character, Second character is the replacement of the searched. Print changed sentence to console.

Example 1 : Sentence : Change me please. Searched : e Replacement : u Output : Changu mu pluasu.

Example 2 : Sentence : Yamette kudasai! Searched : t Replacement : d Output: Yamedde kudasai!