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