I think the reason why some people put the function declarations at the top is that you don't have to care about what order you define the functions. If you have two functions calling each other there is no other way than declaring at least one of the functions before the functions are defined.
It will make more sense when you start to use multiple files. Function declarations are often put into a header file so that other files can include that header files to be able to call the functions.