Open emrerenJs opened 2 years ago
Read a sentence and a word from console and search the word in the sentence.
Example 1 : Sentence : Search me please Word: me Output: "me" word is exist on 7-9 indexes of the sentence.
Example 2 : Sentence : I am starving now! Word : hungry Output : "hungry" word is not exist on the sentence!
Read a sentence and a word from console and search the word in the sentence.
Example 1 : Sentence : Search me please Word: me Output: "me" word is exist on 7-9 indexes of the sentence.
Example 2 : Sentence : I am starving now! Word : hungry Output : "hungry" word is not exist on the sentence!