Advertisement
Guest User

Untitled

a guest
Oct 6th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. HERE IS MY FUNCTION
  2. subroutine second(array,row,column,theRow,theColumn)
  3.   integer , intent(in):: array(4,4)
  4.   integer ,intent(in):: row
  5.   integer ,intent(in):: column
  6.   integer ,intent(out) :: theRow(4)
  7.   integer ,intent(out) :: theColumn(4)
  8.  
  9.   theRow= array(row,1:4)
  10.   theColumn= (/ array(1,column), array(2,column), array(3,column), array(4,column) /)
  11.   return
  12. end subroutine second
  13.  
  14.  
  15.  
  16.  
  17. THIS IS MY PROGRAMME
  18.  
  19.   integer tempArray(4,4)
  20.   integer theMatrix(4,4)
  21.   integer p,q,i,j,r
  22.   integer myRow(4)
  23.   integer myColumn(4)
  24.  
  25. call second(theMatrix,q,r,myRow,myColumn)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement