Find the Character
Write a program for finding the amount
of a specific character inside a string until full stop’.’ encountered.
Input: In the first line you will get a
text (string) ended with a full stop’.’ and in the second line the character.
Output: Total number of specific character
in the given text until full stop.
Sample Input1:
|
Sample Input2:
|
merhaba dunya.
a
|
I love programming. It is fun.
n
|
Sample Output1:
|
Sample Output2:
|
3
|
1
|
Äëÿ îòïðàâêè ðåøåíèé íåîáõîäèìî