Friday, February 4, 2011

while statement

//demo on while statement;
class Whiledemo
{
public static void main(String args[])
{
int x=0;
while(x<=10)
{
System.out.print(x+" ");
x+=2;
}
}
}

No comments:

Post a Comment