1.What is an Infinite loop? Give an example of an infinite loop?
2.write four elements of whille loop in python?
Answers
Answered by
1
1) Infinite loop is a loop in which no. of iterations are not fixed .
For e.g.. int i;
for ( i =0; ; )
{
System.out.print (i);
}
2) a. Initialization
b. Test condition
c. body of the loop
d. update expression
hope this answer will be helpful ^_^
Similar questions