class whileloop
{
public static void main(String args[])
{
int i=1;
while(i<=5)
{
System.out.println("welcone to world "+i);
i++;//increament
}
}
}
//first check the condition and next execute the loop
{
public static void main(String args[])
{
int i=1;
while(i<=5)
{
System.out.println("welcone to world "+i);
i++;//increament
}
}
}
//first check the condition and next execute the loop