do...while( )
do...while is a looping statement. it used to execute the same task until reach the condition false. it is a exit checkup statement.which means conditions can check after loop execution.syntax
do
{
//statements or block of code.
}
while([condition])
example,
main()
{
int a=1;
do
{
printf("\n %d",a);
a++;
}
while(a<=10);
}
Comments
Post a Comment