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