Indentation is also very important to writing clear code. The easiest rule to remember is that any new set of brackets should add a level of indentation for the code contained within it. This holds for functions, loops, and conditionals. The following is an example:
int foofunction(int x) { int y = 0; if(x <= 0) { do some stuff; } else { for(y=0; y<x; y++) { do lots of stuff; } } return(0); }