Even lines

Print all even lines.

IN

1
2
3
4
5
6
7
8
9
10

OUT

2
4
6
8
10

IN

To invent, you need a good imagination and a pile of junk.
                -- Thomas Edison
On a paper submitted by a physicist colleague:

"This isn't right.  This isn't even wrong."
                -- Wolfgang Pauli
"It's a summons."
"What's a summons?"
"It means summon's in trouble."
		-- Rocky and Bullwinkle
Never tell a lie unless it is absolutely convenient.
Anyone who cannot cope with mathematics is not fully human.  At best he
is a tolerable subhuman who has learned to wear shoes, bathe and not
make messes in the house.
		-- Lazarus Long, "Time Enough for Love"
If you cannot convince them, confuse them.
		-- Harry S Truman
Your fault: core dumped
And I heard Jeff exclaim,
As they strolled out of sight,
"Merry Christmas to all --
You take credit cards, right?"
		-- "Outsiders" comic
"...and the fully armed nuclear warheads, are, of course, merely a
courtesy detail."
"I dread success.  To have succeeded is to have finished one's business
on earth, like the male spider, who is killed by the female the moment
he has succeeded in his courtship.  I like a state of continual
becoming, with a goal in front and not behind."
		-- George Bernard Shaw
f u cn rd ths, itn tyg h myxbl cd.
A classic is something that everybody wants to have read and nobody
wants to read.
		-- Mark Twain

OUT

                -- Thomas Edison

                -- Wolfgang Pauli
"What's a summons?"
		-- Rocky and Bullwinkle
Anyone who cannot cope with mathematics is not fully human.  At best he
make messes in the house.
If you cannot convince them, confuse them.
Your fault: core dumped
As they strolled out of sight,
You take credit cards, right?"
"...and the fully armed nuclear warheads, are, of course, merely a
"I dread success.  To have succeeded is to have finished one's business
he has succeeded in his courtship.  I like a state of continual
		-- George Bernard Shaw
A classic is something that everybody wants to have read and nobody
		-- Mark Twain
Login to submit solution


6 symbols pyth
Mon Sep 19 13:57:32 2016 Sait2000
j%2t.z
7 symbols perl
Sat Sep 6 05:12:22 2014 sago35
#!/usr/bin/perl -p
$_=<>
8 symbols bash
Tue Jul 26 17:51:10 2016 hidefromkgb
sed 1~2d
11 symbols bash
Tue Aug 12 22:19:18 2014 PFischbeck
sed -n 0~2p
13 symbols perl
Tue Aug 12 02:40:28 2014 danieljabailey
#!/usr/bin/perl -p
$_=''if$.%2
13 symbols bash
Tue Aug 12 22:15:58 2014 PFischbeck
awk 'NR%2==0'
14 symbols perl
Tue Aug 12 02:39:51 2014 danieljabailey
#!/usr/bin/perl -p
$_=''if$.%2;
14 symbols perl
Thu Sep 4 21:10:13 2014 sago35
#!/usr/bin/perl -p
$_=''if$.%2
14 symbols ruby2.0
Sun Oct 5 18:35:19 2014 fl00r
#!/usr/bin/ruby1.9.1 -p
$.%2>0&&next
15 symbols perl
Mon Aug 11 21:06:30 2014 dionys
#!/usr/bin/perl -p
$.%2&&undef$_
15 symbols perl
Mon Aug 11 23:14:47 2014 danieljabailey
#!/usr/bin/perl -p
$.%2&&($_='')
15 symbols ruby2.0
Sun Oct 5 18:31:09 2014 fl00r
#!/usr/bin/ruby1.9.1 -p
$.%2>0&&$_=''
16 symbols ruby2.0
Sun Oct 5 18:29:10 2014 fl00r
#!/usr/bin/ruby1.9.1 -p
$.%2>0and$_=''
24 symbols ruby2.0
Sun Oct 5 04:45:58 2014 fl00r
puts($_)while(gets;gets)
25 symbols ruby2.0
Sun Oct 5 04:44:20 2014 fl00r
puts($_)while (gets;gets)
30 symbols ruby2.0
Sun Oct 5 03:55:59 2014 fl00r
$<.lines{|l|$..even?&&puts(l)}
32 symbols ruby2.0
Sun Oct 5 03:18:58 2014 fl00r
ARGF.lines{|l|$..even?&&puts(l)}
33 symbols perl
Tue Sep 16 01:49:47 2014 maxymania
while(<>){print unless $i=not$i;}
40 symbols ruby2.0
Sat Oct 4 19:15:26 2014 fl00r
i=0
ARGF.lines{|l|(i+=1).even?&&puts(l)}
44 symbols python3
Mon Aug 11 20:57:33 2014 z423x5c6
import sys
for i in sys.stdin:print(input())

View all solutions