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