Iterative Statement:-
This is the second part of the flow control.
a.) while loop:-
If we don't know no. of iteration in advance then we should go for the while loop.
Syntax:-
while(b)
{
where b should be boolean type
Action
}
1. The arguments should be the boolean type. If we are trying to provide any other type then we will get compile time error.
Example:-