+ 1

How do I display all the terms of the sequence ?

This is the Syracuse Sequence, my problem is that my code only displays the 1st and last term of the sequence, I would like to display them all. What must I modify/add ? https://code.sololearn.com/WRWmgiI7fNnM/?ref=app

20th Jan 2018, 12:38 PM
San_Antonio
San_Antonio - avatar
2 Answers
+ 2
https://code.sololearn.com/cKx6bsE2Vh9k/?ref=app
20th Jan 2018, 1:50 PM
code learner
code learner - avatar
+ 1
Thanks, but I would like it in JavaScript, I haven't learned C++ yet. :D
20th Jan 2018, 8:35 PM
San_Antonio
San_Antonio - avatar