Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package main
- import "fmt"
- func main() {
- var a, b, c string
- fmt.Scanln(&a)
- fmt.Scanln(&b)
- fmt.Scanln(&c)
- x := int(rune(a[0]))
- y := int(rune(b[0]))
- z := int(rune(c[0]))
- var counter = 0
- for i := x; i <= y; i++ {
- for k := x; k <= y; k++ {
- for j := x; j <= y; j++ {
- if i != z && k != z && j != z {
- fmt.Printf("%c%c%c ", i, k, j)
- counter++
- }
- }
- }
- }
- fmt.Println(counter)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement