Hi,
I was asked to write a Java pgm in a contest. But i couldn't do it. I don't know the answer yet. So, I thought i'd ask here. And the problem is , can we write a java program to print numbers 1 to 1000 without using any loops and recursion?
You can use library functions as well.
Please any one say, if it is possible.