Computer Science, asked by rakeshrakesh76647, 2 months ago

Give any one example of infinite loop​

Answers

Answered by AkanshaAn18102005
1

Answer:

A loop is used for executing a block of statements repeatedly until a particular condition is satisfied. Example, when you are displaying number from 1 to 100 you may want to set the value of a variable to 1 and display it 100 times, increasing its value by 1 on each loop iteration.

Answered by Hindeonline
0

When a condition never becomes false, the program enters the loop and keeps repeating that same block of code over and over again, and the loop never ends. The following example shows an infinite loop: a = 1 while a==1: b = input(“what's your name?”) print(“Hi”, b, “, Welcome to Intellipaat!”)

Similar questions