1 minute start...everything you need in a single example !! 
Tutorials on Fortran by www.giuseppeforte.me is licensed under a Creative Commons AttributionShareAlike 4.0 International License. 
In Fortran you can use different variable types: numerical, logical and character variables are the basic ones. Starting from these variables, you may create and declare your own variable types. The basic types in Fortran are
 real variables (single and double precision)
 complex variables (single and double precision)
 integer variables (single and double precision)
 character variables
 logical variables
EXAMPLE  I: Montecarlo evaluation of π
In this example:

Download the Source code(s) (it is free, just have fun!).
In order to run the code in Listing2.f, you'll need the file "ReadPi_Wiki.dat" (refer to the file montepi_one.pdf for more technical details. In order to compile and run the source codes given in the attached Listings, refer to the instructions in section before starting)
