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
362 B

package main
import (
"fmt"
student "student"
"lib"
)
func printComb() {
for i := '0'; i <= '7'; i++ {
for j := i + 1; j <= '8'; j++ {
for k := j + 1; k <= '9'; k++ {
fmt.Printf("%c%c%c", i, j, k)
if i < '7' {
fmt.Print(", ")
}
}
}
}
fmt.Println()
}
func main() {
lib.Challenge("PrintComb", student.PrintComb, printComb)
}