Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package main
- import "fmt"
- func main() {
- var x, y, z int
- fmt.Scanln(&x)
- fmt.Scanln(&y)
- fmt.Scanln(&z)
- for i := 2; i <= x; i += 2 {
- for j := 2; j <= y; j++ {
- if j == 2 || j == 3 || j == 5 || j == 7 {
- for k := 2; k <= z; k += 2 {
- fmt.Printf("%d %d %d\n", i, j, k)
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement