Write a program to enter a sentence. Search for word 'the' in the sentence and count the number of occurrences of 'the' in the sentence.

Example: Enter sentence: These laptop have the hard drive and the mother board

Output:

The number of occurrences of 'the' = 3​

Answers & Comments


Add an Answer


Please enter comments
Please enter your name.
Please enter the correct email address.
You must agree before submitting.

Helpful Social

Copyright © 2024 EHUB.TIPS team's - All rights reserved.