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.
28 lines
396 B
28 lines
396 B
5 years ago
|
package main
|
||
5 years ago
|
|
||
5 years ago
|
import (
|
||
|
"fmt"
|
||
5 years ago
|
|
||
5 years ago
|
student "student"
|
||
|
|
||
4 years ago
|
"github.com/01-edu/public/go/tests/lib"
|
||
5 years ago
|
)
|
||
|
|
||
|
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.Print(", ")
|
||
5 years ago
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
5 years ago
|
fmt.Println()
|
||
5 years ago
|
}
|
||
5 years ago
|
|
||
|
func main() {
|
||
|
lib.Challenge("PrintComb", student.PrintComb, printComb)
|
||
|
}
|