Friday, 9 September 2011

While Loop in java

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

int no=1;

while(no<11)
{
System.out.println("Number :"+no);
no++;
}
}
}

No comments: