Friday 14 September 2012

Java program codes: 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:

Post a Comment