ABC words: Difference between revisions
Content added Content deleted
Line 112: | Line 112: | ||
ok |
ok |
||
next |
next |
||
func count(cString,dString) |
|||
sum = 0 |
|||
while substr(cString,dString) > 0 |
|||
sum++ |
|||
cString = substr(cString,substr(cString,dString)+len(string(sum))) |
|||
end |
|||
return sum |
|||
</lang> |
</lang> |
||
Output: |
Output: |