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.
29 lines
671 B
29 lines
671 B
package main |
|
|
|
import ( |
|
"strings" |
|
|
|
"github.com/01-edu/z01" |
|
) |
|
|
|
func main() { |
|
Lower := z01.RuneRange('a', 'z') |
|
Upper := z01.RuneRange('A', 'Z') |
|
letters := Lower + Upper + " " |
|
var arr []string |
|
for i := 0; i < 10; i++ { |
|
str := z01.RandStr(z01.RandIntBetween(2, 20), letters) |
|
arr = append(arr, str) |
|
} |
|
arr = append(arr, "") |
|
|
|
for _, v := range arr { |
|
z01.ChallengeMain(strings.Fields(v)...) |
|
} |
|
z01.ChallengeMain("Hello World") |
|
z01.ChallengeMain("HEllO World", "problem solved") |
|
z01.ChallengeMain("str", "shh", "psst") |
|
z01.ChallengeMain("happy thoughts", "good luck") |
|
z01.ChallengeMain("al's elEphAnt is overly underweight!") |
|
z01.ChallengeMain("aEi", "Ou") |
|
}
|
|
|