if a variable ‘i’ is declared inside a loop then everytime the loop is executed the same variable will be declared again and again. Isn’t that inefficient?
If the variable is declared outside the loop and it’s value is changed inside the loop would that make the code efficient in any significant way?