Results for: Loop

Can a passenger jet do a loop the loop?

legally no - safely and ethically no - technically most large passenger jets no though a few might if done very carefully with minimal fuel and no passengers (in otherwords as (MORE)

Differentiate for loop and while loop?

The loops are the same. The test is at the start of the loop so both are done zero or more times. The main difference is that the for loop has a built in subscript. The while (MORE)

What type of loop is the do-while loop?

The do-while loop is a looping structure. This looping structure is an exit controlled loop. that means the loop executes at-least once before the test expression is checked. (MORE)

Explanation of for loop?

    for is the most common loop for mathematical calculations. It looks like following   for (type var1 = inticialization; var (condition to continue); var(+ operat (MORE)

What is the BNF of the for loop?

FOR ::= for ( [EXPRESSION]; EXPRESSION; [EXPRESSION]) STATEMENT note: FOR itself is a STATEMENT as well: STATEMENT ::= ...| IF | ELSE | WHILE | FOR | ... | EXPRESSION; | E (MORE)

Turning a while loop to a for loop?

A for loop is just a while loop with a built-in counter. For example, the following programs are functionally identical: While loop:   int counter = 0; while(counter (MORE)