Go Program to Find ASCII Value of a Character

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