Browse Source

count-character

count-character
zainabdnaya 2 years ago
parent
commit
cf7d4cbfeb
  1. 4
      subjects/count-character/README.md

4
subjects/count-character/README.md

@ -1,4 +1,4 @@
# count-character
## count-character
### Instructions
write a function that takes a string and a character as arguments and returns the number of times the character appears in the string.
@ -15,6 +15,8 @@ func CountChar(str string, c rune) int {
### Usage
Here is a possible program to test your function:
```go
package main

Loading…
Cancel
Save