diff options
| -rw-r--r-- | challenge-060/shawak/ruby/ch-1.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/challenge-060/shawak/ruby/ch-1.rb b/challenge-060/shawak/ruby/ch-1.rb new file mode 100644 index 0000000000..c325f4e24a --- /dev/null +++ b/challenge-060/shawak/ruby/ch-1.rb @@ -0,0 +1,10 @@ +s=gets.chomp +r=?@ +if s=~/\d+/ then +s.to_i.times{r=r.succ} +puts r +else +i=1 +(i+=1)while((r=r.succ)!=s) +p i +end |
