ABC words: Difference between revisions

Content added Content deleted
(→‎{{header|Wren}}: Need more sleep!)
Line 223: Line 223:
b := bytes.IndexRune(bword, 'b')
b := bytes.IndexRune(bword, 'b')
c := bytes.IndexRune(bword, 'c')
c := bytes.IndexRune(bword, 'c')
if a >= 0 && b >= 0 && c >= 0 && a < b && b < c {
if a >= 0 && b > a && c > b {
count++
count++
fmt.Printf("%2d: %s\n", count, string(bword))
fmt.Printf("%2d: %s\n", count, string(bword))