class WhileDemo
{
public static void main(String args[])
{
int no=1;
while(no<11)
{
System.out.println("Number :"+no);
no++;
}
}
}
{
public static void main(String args[])
{
int no=1;
while(no<11)
{
System.out.println("Number :"+no);
no++;
}
}
}
No comments:
Post a Comment