Ask Question

Why you should you indent the statements in the body of a loop?

+1
Answers (1)
  1. 13 January, 14:10
    0
    Indenting is a visual way of representing blocks of code. In the case of a loop (but also applicable to conditional statements like if statements). It allows you to easily see to where the looped code extends. In most languages (python being a notable exception), the indenting is not important for correct compilation.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Why you should you indent the statements in the body of a loop? ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers