What is difference between finite and infinite loop in ,also give example
Answers
Answered by
5
In finite Loop there are only certain number of executions.
example for finite:
for(I=0;I<=3;I++)
{
print("123");//only 4 times prints 123
}
In infinite Loop there are infinite number of executions occurs.
ex for infinite:
while(1)
{
print("123");// prints infinite times
}
example for finite:
for(I=0;I<=3;I++)
{
print("123");//only 4 times prints 123
}
In infinite Loop there are infinite number of executions occurs.
ex for infinite:
while(1)
{
print("123");// prints infinite times
}
Similar questions
Geography,
8 months ago
English,
8 months ago
Environmental Sciences,
1 year ago
Computer Science,
1 year ago
Math,
1 year ago
English,
1 year ago
English,
1 year ago