mockers
Would you like to react to this message? Create an account in a few clicks or log in to continue.

INFINITY : Vikas Sir

4 posters

Go down

INFINITY : Vikas  Sir Empty INFINITY : Vikas Sir

Post  ballu Sun Feb 01, 2009 10:42 pm

consider the loop
i=0;
while(i<10)
{
_____________

//add ur code here to make this loop infinite
______________
i++;
}
ballu
ballu

Posts : 58
Join date : 2009-02-01

Back to top Go down

INFINITY : Vikas  Sir Empty @Ballu

Post  mnnit.rahul Sun Feb 01, 2009 11:43 pm

1)put continue before i++

2) write i++

3) write i--

mnnit.rahul

Posts : 51
Join date : 2009-02-01

Back to top Go down

INFINITY : Vikas  Sir Empty Re: INFINITY : Vikas Sir

Post  Admin Sun Feb 01, 2009 11:50 pm

put int i before i++;
haha etawah sahi bola na..

Admin
Admin

Posts : 47
Join date : 2009-01-29

https://mockers.forumotion.com

Back to top Go down

INFINITY : Vikas  Sir Empty Re: INFINITY : Vikas Sir

Post  Chunks Mon Feb 02, 2009 12:25 am

put
if(i!=0)

before i++;

Chunks

Posts : 5
Join date : 2009-02-02

Back to top Go down

INFINITY : Vikas  Sir Empty @everyone

Post  ballu Mon Feb 02, 2009 2:04 am

u didnt have to change i
the continue waala slution is the right one
ballu
ballu

Posts : 58
Join date : 2009-02-01

Back to top Go down

INFINITY : Vikas  Sir Empty Re: INFINITY : Vikas Sir

Post  Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum