''' this code use python while loop syntax ''' i=0 while i<5: print i i=i+1 print i=0 while i<10: print i i=i+2
Output:
0 1 2 3 4 0 2 4 6 8
''' this code use python while loop syntax ''' i=0 while i<5: print i i=i+1 print i=0 while i<10: print i i=i+2
0 1 2 3 4 0 2 4 6 8
0 comments:
Post a Comment