Browse Source

Update README.md

1266-ascii
Hamza elkhatri 2 years ago committed by David Mata
parent
commit
d119045dc5
  1. 6
      subjects/alphaposition/README.md

6
subjects/alphaposition/README.md

@ -1,6 +1,6 @@
## alpha-position ## alpha-position
## instructions ### Instructions
Write a function named `AlphaPosition` that takes an alphabetical character as a parameter and returns the position of the letter in the alphabet. Write a function named `AlphaPosition` that takes an alphabetical character as a parameter and returns the position of the letter in the alphabet.
- If the character is not in the alphabet, return -1 - If the character is not in the alphabet, return -1
@ -14,7 +14,7 @@ func AlphaPosition(c rune) int {
} }
``` ```
### usage ### Usage
```go ```go
package main package main
@ -31,7 +31,7 @@ func main(){
} }
``` ```
### output And its output :
```console ```console
$ go run . | cat -e $ go run . | cat -e

Loading…
Cancel
Save