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