Finished program 5

This commit is contained in:
Mariano Uvalle 2019-05-04 23:33:10 -05:00
parent 98b720fdac
commit ac11f56278
2 changed files with 29 additions and 0 deletions

View file

@ -0,0 +1,15 @@
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