Although a program should first of all meet its specifications, there are important considerations other than correctness. Many of these can be grouped under the heading of style. Sometimes a beginning programmer has the impression that one simply sits down and types in a program. This may work for simple problems, but is a formula for disaster in anything of significant complexity.
Good software is designed, engineered, crafted.
This includes the use of appropriate classes, data structures, cohesive functions, etc. More will be said on these topics elsewhere. Programs are written not just to be run, but also for others to read. Make this person's job easier through good use of indentation, spacing, descriptive identifiers, and general neatness. It is typical, for example, to vertically align opening and closing braces, although there are a few authors who do not do this.