Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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'
Source by www.examtray.com #
 
PREVIOUS NEXT
Tagged: #loop
ADD COMMENT
Topic
Name
8+9 =