Write a program to find the number of times that a given word(i.e. a short string) occurs in a sentence (i.e. a long string
!).
البرنامج هنا يحسب عدد الكلمات المتشابهه كما هو موضوح بالمثال بالاسفل كلمه the ظهرت مرتين في السلسله المعطاه
Read data from standard input. The first line is a single word, which is followed by general text on the second line. Read both up to a newline character, and insert a terminating null before processing.
Typical output should be:
The word is "the".
The sentence is "the cat sat on the mat".
The word occurs 2 times.
رجاء اخوي من اعضاء المنتدى كافه مساعدتي في حل السوال لا تبخلو علي حتى لو بفكره معينه ولكم مني كل التقدير والاحترام