13.07.2015 Views

Fortran 90/95 and Computational Physics

Fortran 90/95 and Computational Physics

Fortran 90/95 and Computational Physics

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Modules - Another Example - cont.PROGRAM module_example2USE constantsUSE circleIMPLICIT NONEREAL(long) :: r, A, Cr = 2A = area(r)C = circumference(r)print*, A, CEND PROGRAM module_example2<strong>Fortran</strong> <strong>90</strong>/<strong>95</strong> <strong>and</strong> <strong>Computational</strong> <strong>Physics</strong> – p.15/22

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!