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.
27 lines
366 B
27 lines
366 B
5 years ago
|
package main
|
||
5 years ago
|
|
||
5 years ago
|
import (
|
||
|
"fmt"
|
||
5 years ago
|
|
||
5 years ago
|
"./student"
|
||
|
)
|
||
|
|
||
|
func printComb() {
|
||
5 years ago
|
for i := '0'; i <= '7'; i++ {
|
||
|
for j := i + 1; j <= '8'; j++ {
|
||
|
for k := j + 1; k <= '9'; k++ {
|
||
5 years ago
|
fmt.Printf("%c%c%c", i, j, k)
|
||
5 years ago
|
if i < '7' {
|
||
5 years ago
|
fmt.Printf(", ")
|
||
5 years ago
|
} else {
|
||
5 years ago
|
fmt.Println()
|
||
5 years ago
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
5 years ago
|
|
||
|
func main() {
|
||
|
lib.Challenge("PrintComb", student.PrintComb, printComb)
|
||
|
}
|