Write a program whose input is
Write a program whose input is a string which contains acharacter and a phrase, and whose output indicates the number oftimes the character appears in the phrase.
Ex: If the input is:
n Monday
the output is:
1
Ex: If the input is:
z Today is Monday
the output is:
0
Ex: If the input is:
n It's a sunny day
the output is:
2
Case matters.
Ex: If the input is:
n Nobody
the output is:
0
n is different than N.
Answer:
As you have not mentioned any programming language i did thisprogram using c++ and c language ,if you want in any otherprogramming language mention plz
"Our Prices Start at $11.99. As Our First Client, Use Coupon Code GET15 to claim 15% Discount This Month!!"
![](https://writinghelpe.com/wp-content/uploads/2022/08/save.jpg)