Count Character
Easy📝 Description
Count how many times a character appears in a string
Input Format
String and a character
Output Format
Count of character
Constraints
1 ≤ string.length ≤ 1000
🔍 Sample Input
"hello"
"l"
✅ Sample Output
2
Code Editor
Please login to run and submit code.
Results
Suggested Solution
Shortcuts: Ctrl+Enter to submit, Ctrl+Shift+R to run