Computer Science, asked by hrik2, 1 year ago

when the increment of the variable is more than one loop in a loop it is called __ iteration

Answers

Answered by Vanessa18
2
Loop iteration
____________

When the increment of the variable is more than one loop in a loop it is called Loop iteration.


Hope it helps!

hrik2: ther r 2 types of iteration??
hrik2: plzz ansr
Vanessa18: Thank you so much for selecting my answer as brainliest:)
Answered by Anonymous
2
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 }.

Example: int i = 0; while( i < 5 ) printf( "i = %d\n", i++ ); printf( "After loop, i = %d\n", i );do-while Loopsdo-while loops are exactly like while loops, except that the test is performed at the end of the loop rather than the beginning.This guarantees that the loop will be performed at least once, which is useful for checking user input among other things ( see example below. )Syntax: do { body; } while( condition );In theory the body can be either a single statement or a block of statements within { curly braces }, but in practice the curly braces are almost always used with do-whiles.Example: int month; do { printf( "Please enter the month of your birth > " ); scanf( "%d", &month ); } while ( month < 1 || month > 12 );

Anonymous: Loop iteration.
Similar questions