While loop has only condition to be started
count=0;
int i=0;
while(i<9) //just condition checking
{
count++;
i++; //dont forget this counter else loop going move ever and ever(infinite loop)
}
System.out.println("Count : "+count);
No comments:
Post a Comment