Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created March 6, 2018 17:30
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/d1ee5b9d9be618f72646c5dbad108d2c to your computer and use it in GitHub Desktop.
Save parzibyte/d1ee5b9d9be618f72646c5dbad108d2c to your computer and use it in GitHub Desktop.
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