languages_and_translators/final_lang/programas/programa5.fort
2019-05-04 23:33:10 -05:00

15 lines
No EOL
303 B
Text

program p5
integer :: counter, limit
subroutine printUntilLimit
if (counter <= limit) then
print counter, ' '
counter = counter + 1
printUntilLimit()
end if
end subroutine
print 'Enter the limit number: '
read limit
counter = 0
printUntilLimit()
print endline
end program