Advertisement
Guest User

Untitled

a guest
Oct 6th, 2017
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. subroutine print_matrix(matrix)
  2.     integer, intent(in) :: matrix(4,4)
  3.     integer x
  4.  
  5.     do x = 1,4
  6.         write(*,*) matrix(x,1:4)
  7.     end do
  8.  
  9. end subroutine
  10.  
  11. program test
  12.     implicit none
  13.     integer matrix(4,4)
  14.  
  15.     matrix(1:4,1:4) = 0
  16.  
  17.     call print_matrix(matrix)
  18.  
  19. end program test
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement