Created
July 31, 2019 22:17
-
-
Save ehrktia/8ee2840a835746134c60a8cb6ea44973 to your computer and use it in GitHub Desktop.
multiplication in loop
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() { | |
for j := 1; j <= 12; j++ { | |
fmt.Printf(" %d", j) | |
for i := 2; i <= 12; i++ { | |
fmt.Printf(" %d", i*j) | |
} | |
fmt.Println("") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
get multiplication using loop