Sha256: 67e3846211939dffaf7a6295e12d52ec0f462dd34ca7c1fe6f5ecba1d2b49919

Contents?: true

Size: 637 Bytes

Versions: 213

Compression:

Stored size: 637 Bytes

Contents

module rna_transcription
  contains
  function complement(dna)
      implicit none
      character(*) :: dna
      character(len(dna)) :: complement
      integer :: i

      do i = 1,len(dna)
        select case (dna(i:i))
            case ('G')
                complement(i:i) = 'C'
            case ('C')
                complement(i:i) = 'G'
            case ('T')
                complement(i:i) = 'A'
            case ('A')
                complement(i:i) = 'U'
            case default
                complement = ''
                return
        end select
      end do

  end function complement
end module rna_transcription

Version data entries

213 entries across 213 versions & 1 rubygems

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