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.
30 lines
671 B
30 lines
671 B
5 years ago
|
package main
|
||
5 years ago
|
|
||
|
import (
|
||
|
"strings"
|
||
|
|
||
|
"github.com/01-edu/z01"
|
||
|
)
|
||
|
|
||
5 years ago
|
func main() {
|
||
5 years ago
|
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 {
|
||
5 years ago
|
z01.ChallengeMain(strings.Fields(v)...)
|
||
5 years ago
|
}
|
||
5 years ago
|
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")
|
||
5 years ago
|
}
|