mirror of https://github.com/01-edu/public.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
244 B
18 lines
244 B
![]()
5 years ago
|
package main
|
||
|
|
||
|
import "fmt"
|
||
|
|
||
|
func main() {
|
||
![]()
4 years ago
|
for a := 9; a >= 2; a-- {
|
||
|
for b := a - 1; b >= 1; b-- {
|
||
|
for c := b - 1; c >= 0; c-- {
|
||
|
fmt.Printf("%d%d%d", a, b, c)
|
||
|
if a+b+c != 3 {
|
||
|
fmt.Print(", ")
|
||
![]()
5 years ago
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
![]()
4 years ago
|
fmt.Println()
|
||
![]()
5 years ago
|
}
|