Challenge : without loops | Sololearn: Learn to code for FREE!

+10

Challenge : without loops

print 1 to 100 numbers without looping structures :)

10/3/2017 3:57:26 PM

kumaresan

23 Answers

New Answer

+2

@~swim~ would you let me know how could we do that without recursion

+17

print(*range(1,101))

+12

https://code.sololearn.com/cqzL7QlS7H6J/?ref=app

+5

My attempt....couldn't test cos playground wasn't working EDIT: It's working now https://code.sololearn.com/chij1gr4CKKI/?ref=app

+5

https://code.sololearn.com/cVuTXFr0Au76/?ref=app

+5

Here's my try : https://code.sololearn.com/c5juZV1e6AeI/?ref=app

+4

Recursion https://code.sololearn.com/chJcOyV49JpM/?ref=app

+4

# print 1 to 100 without loop # by ruby a = (1..100).to_a puts a

+3

here is my code: https://code.sololearn.com/cAUJ799V3K34/?ref=app

+3

@~swim Thank u for ur suggestion... :)

+2

my simple try code in cpp https://code.sololearn.com/cZ31022uYBiX/?ref=app

+2

@my try https://code.sololearn.com/c57Vu4HeEUfj/?ref=app

+2

https://code.sololearn.com/c8t7TNoR38iB/#cs

+2

https://code.sololearn.com/cTGZ25D9I6WC/#cpp

+2

thanks

+1

Great

+1

@Kumaresan, I think you should have placed a restriction - "no recursion allowed"

+1

Whoever has downvoted my comment about Sololearn app crash, seriously needs to grow up ! I started my comment with "Sorry" because I know it's not the right place to ask about it. It was a natural reaction that came out on realizing you lost your comment and time for no fault of yours ! Thank you all. No more comments from me on this thread. Go ahead and downvote this comment too !

+1

https://code.sololearn.com/cSxNysEsB0Ax/#cs

0

My try: https://code.sololearn.com/cevl7vawyl07/?ref=app