THE EXERCISE OF THE GUYS GUYS HAS BEEN MOVED TO THE MENU "EXERCISE OF Teacher"

Counting the number of occurrences of the string

Threads: Enter two strings s1 and s2 on. Count the number of occurrences of s2 in s1. Not case sensitive.
Input: two lines, each containing a string respectively s1, s2.
Output: Some of the frequency of occurrence of s2 in s1.
For example:

input:
Dao Thi Hong Mai Hoa
Who
output:
1

You are not logged in? Log in to Submit Now!

11 Comments

Add a Comment