Home > Net >  How to print 0 to 100 interger without using loop or recursion? [closed]
How to print 0 to 100 interger without using loop or recursion? [closed]

Time:09-22

How can i print integer form 0 .. 100 without using any kind of manul loop or recursion ?

CodePudding user response:

Simple way would be using

IntStream.range(0,101).forEach(::println)
  • Related