What is a do while loop? Give example and syntax?
Share
What is a do while loop? Give example and syntax?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Answer:
Do while is a loop which is also knowns as Exit Controlled Loop it is used to perform the instruction until the condition is met.
int i=0;
do
{
System.out.println(i++);
}while(i<=10);