Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
12
Task/Character-codes/Go/character-codes-2.go
Normal file
12
Task/Character-codes/Go/character-codes-2.go
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
)
|
||||
|
||||
func main() {
|
||||
// Given a character value in your language, print its code
|
||||
fmt.Printf("%d\n", 'A') // prt 65
|
||||
// Given a code, print out the corresponding character.
|
||||
fmt.Printf("%c\n", 65) // prt A
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue