Althaf's example is good, based on your conditions. You can call an external 
program
to do this in GNU. The following will print it.


int main()
{
        system("seq 30000");
}

Regards,
Jos Collin

On Thu, Mar 31, 2011 at 07:59:01PM +0530, Faisal Fiza wrote:
> 
> 
> 
> 
> 
> 
> > Recursion still has conditionals to check the exit condition, however goto 
> > is 
> >not exactly a loop, moreover in > the question it doesnt mention program 
> >should 
> >terminate once 0 to 3.... is printed, ( word play :-D), either   > recursion 
> >or 
> >goto will do, recursion will end up in stack over flow, goto will end up in 
> >infinite loop. ;-).
> 
> 
> Conditions:
>  *Program should terminate after printed from  0 to 3lak.
>  *No conditions and loops
>  *If u use assembly , don't use conditional jumps.

> _______________________________________________
> Indian Libre User Group Cochin Mailing List
> http://www.ilug-cochin.org/mailing-list/
> http://mail.ilug-cochin.org/mailman/listinfo/mailinglist_ilug-cochin.org
> #[email protected]


_______________________________________________
Indian Libre User Group Cochin Mailing List
http://www.ilug-cochin.org/mailing-list/
http://mail.ilug-cochin.org/mailman/listinfo/mailinglist_ilug-cochin.org
#[email protected]

Reply via email to