Last active
March 12, 2018 05:31
-
-
Save parzibyte/78db2b564ae4a68b3e81542a21d07c88 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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