Question: Write go code What can I use to solve this Question? countalpha Instructions Write a function CountAlpha ( ) that takes a string as an

Write go code What can I use to solve this Question?
countalpha
Instructions
Write a function CountAlpha() that takes a string as an
argument and returns the number of alphabetic characters
in the string.
Expected functions
func Countalpha(s string) int
}
Usage
Here is a possible program to test your function:
package main
Import (
"fat"
func main(){
fat.Println(CountAlpha("Hello world"))
fat.Println(CountAlpha("H e l l o"))
fant.Println(CountAlpha("H1e213140"))
}
And Its output:
$ go run .
10
5
5
Write go code What can I use to solve this

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!