Answers for "how to make a while loop using for"

5

while loop

# simple while loop python.
input                                      output
a=1                                        1
while a<=10:                               4                               
      print(a)                             7
      a=a+3                                10
# here a=a+3 can be written as 'a+=3'
Posted by: Guest on November-25-2021
2

while loop

While(condition is true) {

// Code                                         // The block keeps executing as long as the condition is true

// Code

}
Posted by: Guest on August-21-2021
0

while syntax

while(booleanExpression) { 
    //block of code to be executed
}
Posted by: Guest on June-25-2021

Code answers related to "how to make a while loop using for"

Python Answers by Framework

Browse Popular Code Answers by Language