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.
22 lines
390 B
22 lines
390 B
5 years ago
|
package correct
|
||
5 years ago
|
|
||
5 years ago
|
import "github.com/01-edu/z01"
|
||
5 years ago
|
|
||
|
func PrintComb() {
|
||
|
for i := '0'; i <= '7'; i++ {
|
||
|
for j := i + 1; j <= '8'; j++ {
|
||
|
for k := j + 1; k <= '9'; k++ {
|
||
|
z01.PrintRune(rune(i))
|
||
|
z01.PrintRune(rune(j))
|
||
|
z01.PrintRune(rune(k))
|
||
|
if i < '7' {
|
||
|
z01.PrintRune(rune(','))
|
||
|
z01.PrintRune(rune(' '))
|
||
|
} else {
|
||
|
z01.PrintRune(rune('\n'))
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|