write the syntax of do while loop
Answers
Answered by
1
Answer:
Initial values of loop control variable and other variables;
do
{
statement;
statement;
update statement;
}
while(test condition);
Explanation:
Example:-
int a=0;
do
{
a++;
System.out.println(a);
}
while(a<=4);
Similar questions