Why does a programmer indent their code?

Helps show the structure of the code.

Easier for other people to understand.

A key part of good programming style!

All of the above

1 answer

All of the above.

Indentation in programming serves multiple purposes: it helps to visually represent the structure of the code, making it easier to understand for both the original programmer and others who may read the code later. Additionally, maintaining a consistent indentation style is a key part of good programming practices, contributing to code readability and maintainability.