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
783 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("rotatevowels", strings.Fields(v)...)
}
z01.ChallengeMain("rotatevowels", "Hello World")
z01.ChallengeMain("rotatevowels", "HEllO World", "problem solved")
z01.ChallengeMain("rotatevowels", "str", "shh", "psst")
z01.ChallengeMain("rotatevowels", "happy thoughts", "good luck")
z01.ChallengeMain("rotatevowels", "al's elEphAnt is overly underweight!")
z01.ChallengeMain("rotatevowels", "aEi", "Ou")
}