Beruflich Dokumente
Kultur Dokumente
read (*,*) a
read (*,*) a, b, c
read *, a
read *, a, b, c
Write statement
write (*,*) 'Area = ', area
write (*,*) A = ', a, B = , b
program convert
implicit none
integer :: pounds,pence,total
print *,'What is your name?'
read *,name
print *, 'Hi ',name,
end program convert
Area of Plane Shapes
Subroutine or function subprogram
Re-using code the subroutine.
A Fortran subroutine is a block of code that performs
some operation on the input variables, and as a result
of calling the subroutine, the input variables are
modified.