Write the syntax and example for WHILE loop.
Syntax of while loop:
while (condition)
{
statement (*);
}
Example:
void main()
int a = 10;
while (a<15)
cout<<"value of a:"<<a<<end1;
a++;