FOR loop runs till the given condition do not gets false, for loop can make changes in the counter variable(Increment or decrement). there are three parameters in for loop, initial value, condition, increment/decrement.
WHILE loop runs when the given condition is true.