Four is the number of letters in the ...: Difference between revisions
Content added Content deleted
(Updated the output.) |
(Updated output.) |
||
Line 1,258: | Line 1,258: | ||
valcount = 0 |
valcount = 0 |
||
echo fmt" |
echo fmt"Length of sentence: {length}" |
||
#--------------------------------------------------------------------------------------------------- |
#--------------------------------------------------------------------------------------------------- |
||
Line 1,274: | Line 1,274: | ||
let w = word.strip(leading = false, chars = {','}) # Remove trailing ',' if needed. |
let w = word.strip(leading = false, chars = {','}) # Remove trailing ',' if needed. |
||
echo fmt"Word {pos} is ""{w}"" with {w.count(Letters)} letters." |
echo fmt"Word {pos} is ""{w}"" with {w.count(Letters)} letters." |
||
echo fmt"Length of |
echo fmt"Length of sentence: {length}" |
||
break |
break |
||
Line 1,303: | Line 1,303: | ||
181: 10 5 2 3 11 4 2 3 10 4 2 3 |
181: 10 5 2 3 11 4 2 3 10 4 2 3 |
||
193: 10 3 2 3 12 5 2 3 11 |
193: 10 3 2 3 12 5 2 3 11 |
||
Length of sentence: 1203 |
|||
Word 1000 is "in" with 2 letters. |
Word 1000 is "in" with 2 letters. |
||
Length of |
Length of sentence: 6249 |
||
Word 10000 is "in" with 2 letters. |
Word 10000 is "in" with 2 letters. |
||
Length of |
Length of sentence: 64097 |
||
Word 100000 is "one" with 3 letters. |
Word 100000 is "one" with 3 letters. |
||
Length of |
Length of sentence: 659455 |
||
Word 1000000 is "the" with 3 letters. |
Word 1000000 is "the" with 3 letters. |
||
Length of |
Length of sentence: 7113560 |
||
Word 10000000 is "thousand" with 8 letters. |
Word 10000000 is "thousand" with 8 letters. |
||
Length of |
Length of sentence: 70995729</pre> |
||
=={{header|Perl}}== |
=={{header|Perl}}== |