I never got taught programming in school; I just read books, and online guides, and man pages.
My programming style is basically this:
Code:
int main (int argc, char ** argv){
/*stuff*/
exit(0);
}
In other words, for every { indent four spaces more, for every } indent four spaces less.
In other languages, I use similar rules.