ABC words: Difference between revisions
Content added Content deleted
(→{{header|Wren}}: Need more sleep!) |
(→{{header|Go}}: Ditto.) |
||
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 > |
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)) |