+ 3
CHALLENGE: Say and sum sequence (Neo's numbers)
A simple sequence would be 4 8 13 21 30 4 = 'four' (length is 4) + 4 = 8 8 = 'eight' (length is 5)+8 = 13 13 = 'thirteen' (length is 8)+13 = 21 and so on so it's "simply" summing up the spelled number's length with himself for larger number like for example 'twenty - one' just ignore the spaces (make it 'twentyone') create a code where people can choose the first number and how many numbers to generate...good luck ;) (PS - a little hint: start by creating a function that turns numbers into words)
2 Respuestas