Advertisement
Spocoman

Multiply Table

Oct 11th, 2024
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Go 0.32 KB | None | 0 0
  1. package main
  2.  
  3.  import "fmt"
  4.  
  5. func main() {
  6.     var num int
  7.     fmt.Scanln(&num)
  8.  
  9.     for i := 1; i <= num % 10; i++ {
  10.         for j := 1; j <= num / 10 % 10; j++ {
  11.             for k := 1; k <= num / 100; k++ {
  12.                 fmt.Printf("%d * %d * %d = %d;\n", i, j, k, i * j * k)
  13.             }
  14.         }
  15.     }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement