Sha256: 5efeee83465d198bbd310c588e3a1000716f2585afa46b088497897a4ef282c2

Contents?: true

Size: 528 Bytes

Versions: 75

Compression:

Stored size: 528 Bytes

Contents

program bottles

    implicit none
    integer :: nbottles

    do nbottles = 99, 1, -1
        call print_bottles(nbottles)
    end do

contains

    subroutine print_bottles(n)
        implicit none
        integer, intent(in) :: n

        write(*, "(I0, 1X, 'bottles of beer on the wall,')") n
        write(*, "(I0, 1X, 'bottles of beer.')") n
        write(*, "('Take one down, pass it around,')")
        write(*, "(I0, 1X, 'bottles of beer on the wall.', /)") n - 1
    end subroutine print_bottles

end program bottles

Version data entries

75 entries across 73 versions & 8 rubygems

Version Path
rouge-3.26.0 lib/rouge/demos/fortran
rouge-3.25.0 lib/rouge/demos/fortran
rouge-3.24.0 lib/rouge/demos/fortran
rouge-3.23.0 lib/rouge/demos/fortran
rouge-3.22.0 lib/rouge/demos/fortran
rouge-3.21.0 lib/rouge/demos/fortran
rouge-3.20.0 lib/rouge/demos/fortran
files.com-1.0.55 docs/vendor/bundle/ruby/2.5.0/gems/rouge-2.2.1/lib/rouge/demos/fortran
rouge-3.19.0 lib/rouge/demos/fortran
rouge-3.18.0 lib/rouge/demos/fortran
rouge-3.17.0 lib/rouge/demos/fortran
rouge-3.16.0 lib/rouge/demos/fortran
rouge-3.15.0 lib/rouge/demos/fortran
rouge-3.14.0 lib/rouge/demos/fortran
rouge-3.13.0 lib/rouge/demos/fortran
rouge-3.12.0 lib/rouge/demos/fortran
rouge-3.11.1 lib/rouge/demos/fortran
rouge-3.11.0 lib/rouge/demos/fortran
rouge-3.10.0 lib/rouge/demos/fortran
rouge-3.9.0 lib/rouge/demos/fortran