Answers for "can we write while loop inside a while loop in java"

0

how to use while loop in java

int count = 10;
while(count < 10) {
  	System.out.println(count);
  	count++;
}

//while will run when if the condition is true
//if count is less then 10 the condition is true
//if count is more then 10 or equals to 10 it is false.
Posted by: Guest on October-26-2021
0

java while loop

// this will print 1 to 10.
int ctr = 1;
while(ctr <= 10)
{
  System.out.println(ctr); // print ctr value
  ctr++; // increment ctr value by 1
}
Posted by: Guest on January-28-2022
1

java while loop

while(condition) {
}
Posted by: Guest on April-03-2022

Code answers related to "can we write while loop inside a while loop in java"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language