Skip to content

Instantly share code, notes, and snippets.

@dflima
Created June 30, 2016 12:44
Show Gist options
  • Select an option

  • Save dflima/d02d9a6f88afbeff271248dd0c0b30d1 to your computer and use it in GitHub Desktop.

Select an option

Save dflima/d02d9a6f88afbeff271248dd0c0b30d1 to your computer and use it in GitHub Desktop.
package main
import "fmt"
func main() {
//Enter your code here. Read input from STDIN. Print output to STDOUT
var input int
fmt.Scanf("%d", &input)
for i := 1; i <= 10; i++ {
output := input * i
fmt.Printf("%d x %d = %d\n", input, i, output)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment