Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java do while loop

int ctr = 1;
do
{
  System.out.println(ctr); // print ctr value
  ctr++; // increment ctr value by 1
}while(ctr <= 10);
Source by www.javatpoint.com #
 
PREVIOUS NEXT
Tagged: #java #loop
ADD COMMENT
Topic
Name
6+5 =