Skip to content

Instantly share code, notes, and snippets.

@ehrktia
Created July 31, 2019 22:17
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 ehrktia/8ee2840a835746134c60a8cb6ea44973 to your computer and use it in GitHub Desktop.
Save ehrktia/8ee2840a835746134c60a8cb6ea44973 to your computer and use it in GitHub Desktop.
multiplication in loop
package main
import "fmt"
func main() {
for j := 1; j <= 12; j++ {
fmt.Printf(" %d", j)
for i := 2; i <= 12; i++ {
fmt.Printf(" %d", i*j)
}
fmt.Println("")
}
}
@ehrktia
Copy link
Author

ehrktia commented Jul 31, 2019

get multiplication using loop

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment