- Code: Select all
while(var)
{
?
}
while(condition is true)
{
// do something
}
int i=0;
while(i<10)
{
// do something
i++;
}
do
{
// do something
}while(condition);
// notice, you need the semicolon after this while (but not the other)
while(Conditional Statement)
{
do things here while the Conditional Statement is true
}
do
{
do things here
}while(Conditional Statement)
Users browsing this forum: No registered users and 1 guest