Skip to content

Latest commit

 

History

History
10 lines (9 loc) · 409 Bytes

README.md

File metadata and controls

10 lines (9 loc) · 409 Bytes

LookandSay

Calculate nth terms from initial term

The program generates and stores the next term from the lookAndSay sequence The next term on this sequence is obtained by reading out loud the last term and by grouping the repeating digits eg: 1, one one; 11, two ones; 21, one two and one one; 1211, one one one two and two ones 111221, three ones two twos and one one