0
for and while
What's the differences between for and while?
3 ответов
+ 7
while (condition)
{
//codes
index++;
}
for (initialization; condition; index++)
{
// codes
}
+ 5
initialisation;
while(test_condition)
{
body;
iteration;
}
+ 4
@Hatsy The index doesn't have to be increased by one.