summaryrefslogtreecommitdiff
path: root/even
blob: dcee3d9b2e303780d81cafa2b62e4b4e0f6a4e25 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/env ruby

STDIN.set_encoding 'utf-8'
STDOUT.set_encoding 'utf-8'

i = 1
while line = STDIN.gets
  puts line if i%2==0
  i+=1
end