Advertisement
Oppaceted

Untitled

Mar 30th, 2023
1,024
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. subroutine ReadArray(n,array)
  2.     integer :: i
  3.     real, dimension(n) :: array
  4.     do i =1,n
  5.         write (*,'(i2,a,1x$)') i,':'
  6.         read (*,*) array(i)
  7.     end do
  8. end subroutine
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement