Computer Science, asked by bhavishikha5113, 1 year ago

explain 'For loop ' & what is difference between finite or infinite loop

Answers

Answered by MrCoder
0
In computer science, a for-loop (or simply for loop) is a control flow statement for specifying iteration, which allows code to be executed repeatedly.

example:Java

for (int i =1;i<11;1++)
{
//statements;
}

here for (int i =1 //initialization; i<11;//condition ; i++//update )
Similar questions