+ 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
2 Antworten
+ 1
https://code.sololearn.com/cLXE3bnzT9xP/?ref=app
this will be ok ...
must print the number which was input first