Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package main
- import "fmt"
- func main() {
- var num int
- fmt.Scanln(&num)
- for i := 1; i <= num % 10; i++ {
- for j := 1; j <= num / 10 % 10; j++ {
- for k := 1; k <= num / 100; k++ {
- fmt.Printf("%d * %d * %d = %d;\n", i, j, k, i * j * k)
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement