Hey all...
I have another method, which will use the power of c++...

class dummy{
static int objectCount;
dummy(){ cout << ++objectCount <<endl; }
}
int dummy::objectCount = 0;

Now create as many objects as required, and as you create a new
object, the total count of objects instantiated till now will be
printed.
Thus, create 100 objects to print numbers till 100....

I hope the method is clear...if not please let me know...

On Mar 1, 12:14 am, Subhransupanigrahi <[email protected]>
wrote:
> Is there any way to print 1 to 10 (taking an example, it can also extend to 
> 100) without using loop, recursion.
>
> Sent from my iPhone

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to