Answers for "when while loop is used"

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

Code answers related to "when while loop is used"

Python Answers by Framework

Browse Popular Code Answers by Language