Created
November 6, 2012 04:35
-
-
Save campeterson/4022577 to your computer and use it in GitHub Desktop.
codeupper2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
input = ARGV[0] | |
a = input.count('A'); | |
c = input.count('C'); | |
g = input.count('G'); | |
u = input.count('U') | |
p "#{a} #{c} #{g} #{u}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment