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