SUM!

Write a program to sum of digits of given integer number.

IN

1
2

OUT

3

IN

50
23

OUT

73

IN

20
20

OUT

40

IN

70
21

OUT

91

IN

22
40

OUT

62
Login to submit solution


2 symbols golfscript
Sat Nov 5 19:16:40 2016 Sait2000
~+
3 symbols pyth
Sat Nov 5 17:27:42 2016 Sait2000
s.Q
3 symbols pyth
Mon Mar 26 23:55:05 2018 GolfingSuccess
+QE
5 symbols pyth
Sun Mar 18 03:03:24 2018 Krimpoche
+QiwT
9 symbols perl
Sat Nov 5 19:23:16 2016 k-mx
#!/usr/bin/perl -pn
$_+=<>
21 symbols python2
Sat Apr 29 18:56:52 2017 joshlotriet
print input()+input()
21 symbols python2
Tue Feb 13 13:19:42 2018 drafear
i=input;print i()+i()
32 symbols python3
Sun Mar 18 02:43:49 2018 Krimpoche
print(int(input())+int(input()))
35 symbols lua
Sat Apr 29 19:17:22 2017 joshlotriet
a=io.read;print(math.ceil(a()+a()))
37 symbols haskell
Wed Aug 2 09:10:24 2017 YoshikuniJujo
main=interact$show.sum.map read.lines
40 symbols python3
Sun Jan 8 02:39:22 2017 vockyX
a=int(input())
b=int(input())
print(a+b)
44 symbols python3
Sun Mar 18 02:40:49 2018 Krimpoche
print(sum([int(input()) for i in range(2)]))
45 symbols perl
Tue Feb 13 13:21:08 2018 drafear
$a = <>; $b = <>;
$sum = $a+$b;
print "$sum";
60 symbols perl
Sat Nov 5 08:45:28 2016 RayhanYulanda
#! usr/bin/perl
$a = <>; $b = <>;
$sum = $a+$b;
print "$sum";
60 symbols perl
Sat Nov 5 08:49:29 2016 RayhanYulanda
#! usr/bin/perl
$a = <>; $b = <>;
$sum = $a+$b;
print "$sum";

View all solutions