07.02.2015, 12:35
Count the number of {. Then count the number of }. If they do not match, you screwed up. When typing braces, always type them in pairs (i.e. "{}") and you're guaranteed to almost never screw up.
Secondly: indent your code! After each { you indent the following code by 1 tab until you encounter the next }.
Secondly: indent your code! After each { you indent the following code by 1 tab until you encounter the next }.