Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Last active March 12, 2018 05:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/78db2b564ae4a68b3e81542a21d07c88 to your computer and use it in GitHub Desktop.
Save parzibyte/78db2b564ae4a68b3e81542a21d07c88 to your computer and use it in GitHub Desktop.
package main
import (
"strconv"
"fmt"
)
func main(){
numero := int64(85)
otroNumero := int64(20)
numeroFinal := int64(64)
fmt.Printf("El número %d en binario es '%s'\n", numero, strconv.FormatInt(numero, 2))
fmt.Printf("El número %d en binario es '%s'\n", otroNumero, strconv.FormatInt(otroNumero, 2))
fmt.Printf("El número %d en binario es '%s'\n", numeroFinal, strconv.FormatInt(numeroFinal, 2))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment