If no STEP is used with the FOR statement, the control variable is incremented by the default value, which is_____
Answers
Answer:
Computers are very good at performing repetitive tasks very quickly. In this section we will learn how to make computer repeat actions either a specified number of times or until some stopping condition is met.
while Loops ( Condition-Controlled Loops )
Both while loops and do-while loops ( see below ) are condition-controlled, meaning that they continue to loop until some condition is met.
Both while and do-while loops alternate between performing actions and testing for the stopping condition.
While loops check for the stopping condition first, and may not execute the body of the loop at all if the condition is initially false.
Syntax:
while( condition )
body;
where the body can be either a single statement or a block of statements within { curly braces }.