Created
March 6, 2018 17:30
-
-
Save parzibyte/d1ee5b9d9be618f72646c5dbad108d2c 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 "fmt" | |
func main() { | |
var tabla int | |
fmt.Print("¿Cuál tabla deseas ver? ") | |
fmt.Scanln(&tabla) | |
for numero := 1; numero <= 10; numero++ { | |
resultado := numero * tabla | |
fmt.Printf("%d x %d = %d\n", tabla, numero, resultado) // \n significa salto de línea. %d es para imprimir enteros | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment