Friday, 9 September 2011

do while loop in java

class DoWhile
{
public static void main(String args[])
{

int no=1;

do
{

System.out.println("Number is:"+no);
no++;

} while(no<11);

}
}



No comments: