Computer Science, asked by shalianupros, 1 year ago

What is difference between finite and infinite loop in ,also give example

Answers

Answered by hari44
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
}
Similar questions