Introduction To Programming

Why programs ? Programming is nothing but making the computers think the same way a human thinks. Programs are made for obtaining a specific solution which can even be solved by humans which when solved by us may consume time..

Sunday, April 25, 2010

Is these two programs same?

for (i=0;i<5;i++)
{
if(i%3==0)
continue;
}

i=0;
while(i<5)
{
if(i%3==0)
continue;
i++;
}

Answer:

Yes
No