Ad
  • Custom User Avatar

    I'm curius whether we're supposed to return each number or print it. I am not aware of any ways to repeatedly return value from a method. As far as i know, once a return statement is executed the program exits from the function. This is why I have choosen to use the "println" method as well.