Find the numbers

Get the numbers from a string separated by a white space..

IN

"1 23 34 234"

OUT

1
23
34
234
Login to submit solution


3 symbols pyth
Mon Sep 19 06:10:41 2016 Sait2000
jcQ
10 symbols perl
Fri Feb 13 13:54:52 2015 vakorol
#!/usr/bin/perl -p
y/ "/
/d
11 symbols php
Thu Feb 12 20:36:14 2015 danieljabailey
1
23
34
234
11 symbols php
Sun Jul 10 17:15:56 2016 Katie Gardner
1
23
34
234
11 symbols bash
Tue Jul 26 19:27:45 2016 hidefromkgb
tr \ \" \\n
17 symbols perl
Thu Feb 12 20:44:59 2015 danieljabailey
#!/usr/bin/perl -p
s/ /\n/g;s/"//g
19 symbols ruby2.0
Tue Mar 22 03:04:14 2016 Jian Zhang
p 1
p 23
p 34
p 234
20 symbols bash
Sun Jul 24 15:16:48 2016 hidefromkgb
tr \  \\n | tr -d \"
31 symbols python2
Thu Feb 12 23:44:25 2015 PFischbeck
print input().replace(" ","\n")
31 symbols python2
Thu Feb 4 19:04:44 2016 felixbade
print'\n'.join(input().split())
31 symbols python2
Sat Apr 29 18:58:57 2017 joshlotriet
print"\n".join(input().split())
32 symbols haskell
Fri Mar 13 13:57:58 2015 YoshikuniJujo
main=interact$unlines.words.read
32 symbols python2
Mon Oct 12 16:01:38 2015 BogdanShevchenko
for i in input().split():print i
39 symbols python3
Thu Feb 12 21:36:27 2015 z423x5c6
print('\n'.join(eval(input()).split()))
41 symbols python2
Thu Feb 12 23:43:37 2015 PFischbeck
print raw_input()[1:-1].replace(" ","\n")
44 symbols python3
Thu Feb 19 16:15:47 2015 k-popov
print('\n'.join(input().strip('"').split()))
49 symbols python3
Sat Apr 29 18:58:09 2017 joshlotriet
for i in input().split():print(i.replace('"',""))
58 symbols python3
Sat Oct 8 14:42:24 2016 GreenJoey
data = input().strip('""').split()

print(*data, sep="\n")

View all solutions