Advertisement
Spocoman

08. Secret Door's Lock

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