just like me) i try to explain you iteration loops the way i learned:
                  
                  
                  
                  
                  
                  in iteration loops usually you got 3 things
                  
                  
                  ``loop varibale, 
                  
                  
                  loop condition,
                  
                  
                  loop step```
                  
                  
                  
                  
                  
                  u start with initial value on loop variable .
                  
                  
                  
                  
                  
                  X : check whether condition met or not?
                  
                  
                  
                  
                  
                  Yes -> run loop statements , add step (which can be negative) to loop variable and again go to X.
                  
                  
                  
                  
                  
                  No -> exit loop.
                  
                  
                
Reminds me of the times where I avoided for loops like cancer and only used while loops :D
Обсуждают сегодня