Pinadadali ng Imhr.ca ang paghahanap ng mga sagot sa iyong mga katanungan kasama ang isang aktibong komunidad. Tuklasin ang libu-libong tanong at sagot mula sa isang komunidad ng mga eksperto na handang tumulong sa iyo. Kumuha ng mabilis at mapagkakatiwalaang mga solusyon sa iyong mga tanong mula sa isang komunidad ng mga bihasang eksperto sa aming platform.

Give your own ideas about women's discrimination in the past and present generation same as the LGBTQIA.

Sagot :

Answer:

Write a program that would match a string. It accepts two inputs: the phrase/sentence string (text) and the pattern string (word). The program finds the first (or all) instances of the pattern in the text and changes that word in all uppercase and displays its number of occurrences.

Sample Input:

Text string: You will always have my love, my love, for the love I love is as lovely as love itself.

Pattern string: love

Sample Output:

New text: You will always have my LOVE, my LOVE, for the LOVE I LOVE is as lovely as LOVE itself.

Number of occurrence: 5