answersLogoWhite

0

In computer programming, a loop is a series of instructions given and carried out continuously until a condition is made or an error is found. Both of these possibilities come to the same result, termination of the loop unless the program is specified to run for an infinite amount of time.

EXAMPLE:

#include int main() { int i; for (i = 0; i < 10; i++) { printf ("Hello\n"); printf ("World\n"); } return 0; }

User Avatar

Wiki User

11y ago

What else can I help you with?

Related Questions

How do you loop a program in python 3?

A program can be looped in Python by wrapping the entire program in a for or while loop. If you wish to loop the program a finite amount of times, it can be done like so (x = the amount of times you want it to loop, this can be a number or variable storing a number): for i in range(0,x): [code] If you wish to loop the program infinitely, you can use a simple while loop: while True: [code]


A program with a loop that never ends is called an?

Infinite loop.


What is odd loop in 'C' program?

odd loop means at least the loop execute once.


What is the runtime complexity of a while loop in a program?

The runtime complexity of a while loop in a program is typically O(n), where n represents the number of iterations the loop performs.


When is Iteration used in a Java program?

in a loop


How do you write a program with do while loop so that the output is 123456 equals 720?

How do you write a program with do while loop so that the output is 123456 =720


What are the differences between iterations and loops in progamming?

A loop will loop for n iterations. Each times the program executes the code in the loop is an iteration.


What loop should no execute if the test expression is false to begin with?

for loop and while loop need the expression to be true for further execution of the program.


When you input data in a loop within a program the input statement that proceeds the loop is what?

is called a priming input


What are the disadvantages of the While Loop?

With loops, your program is slower.


How do you loop a program in python?

An infinite loop might look something like: while 1==1: print("Infinite loop") as 1 is ALWAYS equal to 1.


How can you use the "break" statement in Java to prematurely exit a "for" loop?

In Java, you can use the &quot;break&quot; statement within a &quot;for&quot; loop to exit the loop prematurely. When the &quot;break&quot; statement is encountered, the loop will immediately stop executing and the program will continue with the code after the loop.