Advertisement
Spocoman

01. Unique PIN Codes

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