Code to count occurrences of a specific character in a String.
Input
Input consists of single string followed by a character in next line.
Output
The output will be the number of occurrence of that character.
Example
Input:
welcome to codingfingers.
e
Output:
3
stringdhanshree October 1, 2012 at 4:46 PM
Code to count occurrences of a specific character in a String. Input Input consists of single string followed by a character in next line. Output The output will be the number of occurrence of that character. Example Input: welcome to codingfingers. e Output: 3
Post your Comment