languages_and_translators/final_lang/test2.fort

23 lines
448 B
Text
Raw Normal View History

program test
2019-04-30 09:54:10 -05:00
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 do
end subroutine
subroutine printMatrix
do i = 0, 9 then
do j = 0, 9 then
print a(i,j), ' '
end do
print endline
end do
end subroutine
fillMatrix()
printMatrix()
end program