Go Program to Find ASCII Value of a Character

Golang Program to Find ASCII Value of a Character 2

This Go program uses the printf statement and string formats to find and return the user-given character’s ASCII value. package main import ( “bufio” “fmt” “os” ) func main() { reader := bufio.NewReader(os.Stdin) fmt.Print(“Enter Any Character to find ASCII = “) ch, _ := reader.ReadByte() fmt.Printf(“The ASCII value of %c = %d\n”, ch, ch) } … Read more