while loop
While(condition is true) {
// Code // The block keeps executing as long as the condition is true
// Code
}
while loop
While(condition is true) {
// Code // The block keeps executing as long as the condition is true
// Code
}
python while loop
while <Condition>:
<code>
#example
i = 10
while i == 10:
print("Hello World!")
while loop in python
#Make a variable containing an integer like shown below:
i=1
while i<=6:
print ("Hello")
#This loop will go on forever and the only way to stop it is to kill your program
while loop
Create a loop that runs as long as i is less than 10.
var i = 0;
while(i < 10) {
console.log(i); i++
}
while loop
Create a loop that runs as long as i is less than 10, but increase i with 2 each time.
var i = 0
while(i < 10){
console.log(i);
i = i + 2;
}
while loop
var i=1;
while(i<=10){
document.write(i + "<br>");
i++;}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us