If the language is not a requirement, in python just do

print range(1,101)

Very interesting solutions!

On Wed, Mar 2, 2011 at 10:25 AM, Sachin Midha <sachinmidha1...@gmail.com>wrote:

> The method that I have given you, can print as many numbers as you
> want, depending upon how many objects you create.
> Yes with this method you'll have to create 100 objects of the dummy
> class,
> & that can be easily created using dummy d[100]....
> So that makes the method very effective & shows how much you can play
> with C++...;-)
>
> On Mar 1, 4:47 pm, gaurav gupta <1989.gau...@googlemail.com> wrote:
> > @bittu
> >
> > please read the thread carefully. It was mentioned not to use GOTO
> > statement.
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > On Tue, Mar 1, 2011 at 5:13 PM, bittu <shashank7andr...@gmail.com>
> wrote:
> > > here we go
> >
> > > void main()
> > > {
> > > int i;
> >
> > > i=1;
> >
> > > loop:
> > > printf("%d", i)
> > > (i<100)? i++: return 0;
> > > go to loop;
> >
> > > }
> >
> > > Thanks & Regards
> > > Shashank Mani >> "The Best Way to Escape From The Problem is to Solve
> > > it"
> >
> > > --
> > > You received this message because you are subscribed to the Google
> Groups
> > > "Algorithm Geeks" group.
> > > To post to this group, send email to algogeeks@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > algogeeks+unsubscr...@googlegroups.com.
> > > For more options, visit this group at
> > >http://groups.google.com/group/algogeeks?hl=en.
> >
> > --
> > Thanks & Regards,
> > Gaurav Gupta
> > 7676-999-350
> >
> > "Quality is never an accident. It is always result of intelligent effort"
> -
> > John Ruskin
>
> --
> You received this message because you are subscribed to the Google Groups
> "Algorithm Geeks" group.
> To post to this group, send email to algogeeks@googlegroups.com.
> To unsubscribe from this group, send email to
> algogeeks+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>
>


-- 
Wesley Mesquita
Computer Engineer
http://www.wesleymesquita.com
Mobile: +55 11 95249272

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

Reply via email to