I want the readers to make a program (any language) which prints the given like sequence. | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 1

I want the readers to make a program (any language) which prints the given like sequence.

7,22,11,34,17,52,26,13...up to 20 terms and also allows user to input a number (odd or even) from which the sequence will start.. for eg (odd) input?19 19 58 29 88 44 22 11 34 17 52 26 13 ... hoti 20 terms another eg(even) input?32 32 16 8 4 2 1 4 2 1 4 2 1 4 2 1 4 2 1 4 2

4th Dec 2017, 12:44 PM
Rohan Raj Poudel
2 Antworten
+ 1
https://code.sololearn.com/cLXE3bnzT9xP/?ref=app this will be ok ... must print the number which was input first
4th Dec 2017, 2:29 PM
Rohan Raj Poudel
4th Dec 2017, 1:55 PM
Artem Bets
Artem Bets - avatar