program test
integer [10][10] :: a
integer :: i, j, counter
subroutine fillMatrix
counter = 1
do i = 0, 9 then
do j = 0, 9 then
a(i,j) = counter
counter = counter + 1
end do
end subroutine
subroutine printMatrix
print a(i,j), ' '
print endline
fillMatrix()
printMatrix()
end program