Loops?
Posted: Wed Aug 18, 2010 5:15 pm
Hello, can anyone explain loops to me? ("for", "do while", "when" etc.)
I've seen plenty of examples of loops, but dont really get what they are suppose to do or how they work
like this one:
int i,j;
for(i=0;i<j;i++)
{
//action here
}
also: what is the purpose of loops? is it somthing you can easily go without or are they nessessary?
sorry if this is explained elsewhere, i didnt find anything via the search
I've seen plenty of examples of loops, but dont really get what they are suppose to do or how they work
like this one:
int i,j;
for(i=0;i<j;i++)
{
//action here
}
also: what is the purpose of loops? is it somthing you can easily go without or are they nessessary?
sorry if this is explained elsewhere, i didnt find anything via the search