Here is a complete list of instructions to get this working very quickly.
1. uninstall everything you have already installed today
2. go to
http://www.codeblocks.org/ click on "download", "Download the binary release", "Windows XP / Vista / 7 / 8.x / 10" and then "codeblocks-16.01mingw_fortran-setup.exe"
3. run the installer, keep clicking next until it's finished
4. run CodeBlocks, choose the "GNU Fortran Compiler", click "Set as default" and then "OK"
5. click on File/New/Project/Fortran Application
6. click Next, set the project title to whatever you want, set the projects folder to e.g. "My Documents"
7. click Next, make sure GNU Fortran Compiler is selected and then click Finish
8. on the left side you can now see your new project. Click on "Fortran Sources/main.f95"
Now you can modify the code and then click on "Build and run" or press F9.
btw. all your Fortran files should end with .f95 or .f90 to make sure the compiler recognizes them correctly
There are different tutorials out there to help you get started. e.g.
http://www.tutorialspoint.com/fortran/
http://www.fortrantutorial.com/
You can also find tutorial videos on Youtube