Sha256: 4d1bc4c8fe1cb1c0808a3702783da359a1c5526e4f67184cf66a9be60d32c48d

Contents?: true

Size: 524 Bytes

Versions: 213

Compression:

Stored size: 524 Bytes

Contents

module raindrops
  contains
  function convert(i)
    implicit none
    integer :: i
    character(20) :: convert

    convert = ''

    if ( mod(i,3) .eq. 0 ) then
      convert = 'Pling'
    end if
    if ( mod(i,5) .eq. 0 ) then
      convert = trim(convert)//'Plang'
    end if
    if ( mod(i,7) .eq. 0 ) then
      convert = trim(convert)//'Plong'
    end if

    if (convert .eq. '') then
      write( convert, '(i20)' ) i
      convert = trim(adjustl(convert))
    end if

  end function convert
end module raindrops

Version data entries

213 entries across 213 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/fortran/exercises/raindrops/example.f90
trackler-2.2.1.179 tracks/fortran/exercises/raindrops/example.f90
trackler-2.2.1.178 tracks/fortran/exercises/raindrops/example.f90
trackler-2.2.1.177 tracks/fortran/exercises/raindrops/example.f90
trackler-2.2.1.176 tracks/fortran/exercises/raindrops/example.f90
trackler-2.2.1.175 tracks/fortran/exercises/raindrops/example.f90
trackler-2.2.1.174 tracks/fortran/exercises/raindrops/example.f90
trackler-2.2.1.173 tracks/fortran/exercises/raindrops/example.f90
trackler-2.2.1.172 tracks/fortran/exercises/raindrops/example.f90
trackler-2.2.1.171 tracks/fortran/exercises/raindrops/example.f90
trackler-2.2.1.170 tracks/fortran/exercises/raindrops/example.f90
trackler-2.2.1.169 tracks/fortran/exercises/raindrops/example.f90
trackler-2.2.1.167 tracks/fortran/exercises/raindrops/example.f90
trackler-2.2.1.166 tracks/fortran/exercises/raindrops/example.f90
trackler-2.2.1.165 tracks/fortran/exercises/raindrops/example.f90
trackler-2.2.1.164 tracks/fortran/exercises/raindrops/example.f90
trackler-2.2.1.163 tracks/fortran/exercises/raindrops/example.f90
trackler-2.2.1.162 tracks/fortran/exercises/raindrops/example.f90
trackler-2.2.1.161 tracks/fortran/exercises/raindrops/example.f90
trackler-2.2.1.160 tracks/fortran/exercises/raindrops/example.f90