g | x | w | all
Bytes Lang Time Link
050TXR Lisp170801T214021ZKaz
007Pip240821T193258ZDLosc
014J240821T113813ZGalen Iv
050Red240821T112550ZGalen Iv
032Arturo230204T192930Zchunes
040Excel VBA240129T212928ZTaylor R
003Thunno 2 S230608T165135ZThe Thon
012GolfScript230228T160554Zemirps
nan230204T121653ZThe Thon
102Magneson170801T094244ZBrella
004Japt x221214T124918ZShaggy
068><>221214T123203ZEmigna
016Juby221121T003825ZJordan
013K ngn/k220505T134932Zoeuf
038Julia 1.0220509T100137ZMarcMush
052Python 3220509T074058ZNumber B
070Desmos220503T193720ZnaffetS
007Burlesque220503T202958ZDeathInc
039Factor + math.unicode220503T195228Zchunes
028Vim210411T054706ZLeo
059Excel210411T131806ZAxuary
004Arn x210411T024237ZZippyMag
046vim210410T224347ZRay
081Java OpenJDK 8210410T222213ZDonat
127Python 3210410T204025ZSymmetr1
075R170801T151723ZGiuseppe
027x86210410T143502Zl4m2
043PowerShell210410T115903Zmazzy
089PowerShell210410T040151Zwasif
002Vyxal210228T065318ZRazetime
059Lua210301T004549ZJ. А. de
007Canvas210228T071847Zhakr14
026Gol><>180222T082348ZUnihedro
003Pyt180222T000121Zqqq
018J171230T065826ZBolce Bu
nanPerl 5170801T014530ZXcali
007Pyth171230T054825ZTornado5
010Recursiva171229T092158Z0xffcour
3835Ruby171214T174453ZUnihedro
007Gaia171214T191441ZGiuseppe
039Ruby170801T163723Zakostadi
003Husk170801T013515Zბიმო
084Java 8170905T152605ZJakob
146C++170801T012446ZHatsuPoi
049Excel VBA170801T154558ZTaylor R
011MY170731T235953ZAdalynn
005Japt170731T234233ZJustin M
068Swift 3170802T182918Zidrougge
013k170812T193208Zzgrep
061Swift 4170801T065636ZMr. Xcod
nan170731T232810ZBrad Gil
072Javascript170801T011523ZSuperSto
097Java 8170803T103309ZAkash Th
046REXX170802T172819Zidrougge
036Röda170801T165300Zuser4180
062Common Lisp170802T094217ZRenzo
007APL Dyalog170801T131906Zuser4180
110Rust170802T092031Zjferard
050Python 3170802T090359ZŁukasz R
024Bash + GNU utils170731T232654ZDigital
012CJam170801T150502ZErik the
035Retina170731T234905ZNeil
391PHP170801T165138ZTitus
071C gcc170801T155813ZGiacomo
015GolfScript170801T150808ZErik the
047Python 2170731T232839Znotjagan
053PowerShell170801T131114ZAdmBorkB
097C# .NET Core170801T020619ZKamil Dr
098Swift 3170801T121936ZSergii M
033LOGO170801T093450Zuser2027
004Neim170801T092112Zspace ju
066Tcl170801T081320Zsergiol
005MATL170801T081052ZCinaski
007Pyke170801T074351ZBlue
013Charcoal170801T002725ZASCII-on
004Brachylog170801T065752ZDanTheMa
019QBIC170801T060648Zsteenber
063C gcc170801T053228ZLeaky Nu
043Pari/GP170801T025015Zalephalp
034Haskell170801T011441ZSilvio M
031Ly170801T011420ZLyricLy
042JavaScript ES6170801T010459ZETHprodu
004Jelly170801T004907ZJonathan
006Pyth170731T234402Znotjagan
005Jelly170731T233905Znmjcman1
008RProgN 2170731T234121ZATaco
00305AB1E170731T233702ZAdnan
038Python 2170731T233549ZAdnan
004cQuents170731T233343ZStephen
047Mathematica170731T232404ZZaMoC

TXR Lisp: 62 56 52 50 bytes:

(lopip(range 1)(sum(opip tostring reverse toint)))

Interactive:

1> (lopip(range 1)(sum(opip tostring reverse toint)))
#<intrinsic fun: 0 param + variadic>
2> [*1 10]
46
3> [*1 999]
454545

Pip, 7 bytes

$+R*\,a

Attempt This Online!

Explanation

      a  ; Command-line argument
    \,   ; 1-based inclusive range
  R*     ; Reverse each
$+       ; Fold on addition

J, 14 bytes

1#.1|.&.":@+i.

Try it online!

Red, 50 bytes

func[n][s: 0 repeat i n[s: s + do reverse form i]]

Try it online!

Arturo, 52 32 bytes

$=>[∑map&'x->do reverse~"|x|"]

Try it

Yikes, this was bad. I immediately found 20 bytes of savings looking back on this a year and a half later.

Excel VBA, 40 bytes

Anonymous Immediate window function that takes input from cell [A1] of the activesheet object and outputs to the Immediate Window console.

For i=1To[A1]:u=u--StrReverse(i):Next:?u

Thunno 2 S, 3 bytes

RṃN

Attempt This Online!

Explanation

RṃN  # Implicit input        -> 10
R    # Push [1..input]       -> [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
 ṃ   # Reverse each          -> [1, 2, 3, 4, 5, 6, 7, 8, 9, '01']
  N  # Cast each to int      -> [1, 2, 3, 4, 5, 6, 7, 8, 9, 1]
     # S flag sums the list  -> 46
     # Implicit output

GolfScript, 12 bytes

,{)`-1%~+}*)

Try it online!

Explanation

code         # explanation           | stack
,{)`-1%~+}*) # function with input n | n
,            # range                 | [0..n)
 {       }*  # fold this block over  | [0..n)
  )          # increment             | [1..n]
   `         # stringify             | ["1"..str(n)]
    -1%      # map by -1 (reverse)   | [rev("1")..rev(str(n)]
       ~     # eval                  | [rev(1)..rev(n)]
        +    # add (effectively sum) | sum([rev(1)..rev(n)])
           ) # increment             | sum([rev(1)..rev(n)])+1

Thunno +, \$4\log_{256}(96)\approx\$ 3.29 bytes

R.rS

Attempt This Online!

Explanation

R.rS  # Implicit input
      # + flag adds one
R     # Range
 .r   # Reverse each
   S  # Sum
      # Implicit output 

Magneson, 102 bytes

Source

That's not very visible, so here's a scaled up version (Note: Won't actually run, and still isn't very pretty)

Display Purposes Only
(source: googleapis.com)

Magneson operates by parsing an image and evaluating commands from the colours of the pixels it reads. So stepping through the image for this challenge, we have:

All in all, the program:

Japt -x, 4 bytes

õÈìÔ

Try it

õÈìÔ     :Implicit input of integer
õ        :Range [1,input]
 È       :Map
  ì      :  Convert to digit array
   Ô     :  Reverse and implicitly convert back
         :Implicit output of sum of resulting array

><>, 68 bytes

1:{:})?^:9)?v:1+!
a:v?(1:[2$0:<.17-%1:,a}+*a{%
0.>~]$d
=?n+a3.>~{~l1

Try it online!

J-uby, 16 bytes

:+|:sum+(S|:~|Z)

Attempt This Online!

Explanation

Same idea as the Ruby answers but J-uby helps us out with some handy shortcuts.

:+ | :sum + (S | :~ | Z)

:+ |                      # Make range 1..n, then
     :sum + (          )  # Sum of items...
             S |          #   Converted to string, then
                 :~ |     #   Reversed, then
                      Z   #   Converted to int  

K (ngn/k), 15 14 13 bytes

{+/.'|'$1+!x}

Try it online!

-1 byte thanks to coltim

Julia 1.0, 38 bytes

!x=sum(Meta.parse∘join∘digits,1:x)

Try it online!

this works because digits returns an array with the digits starting with the least significants first (digits(123) == [3, 2, 1])

alternative, also 38 bytes (but more chars and not as nice)

!x=sum(@.parse(Int,join(digits(1:x))))

Try it online!

Python 3, 52 bytes

lambda n:sum(int(str(n+1)[::-1])for n in range(n))
lambda n:sum(int(f'{n+1}'[::-1])for n in range(n))

The second is equivalent to the first.

Desmos, 72 70 bytes

l=floor(logx)
f(y)=∑_{x=1}^y∑_{n=0}^lmod(floor(x/10^n),10)10^{l-n}

Try it on Desmos!

-2 bytes thanks to Aiden Chow

Burlesque, 7 bytes

ro)<-++

Try it online!

ro  # Range
)<- # Reverse
++  # Sum

Factor + math.unicode, 39 bytes

[ [1..b] [ >dec reverse dec> ] map Σ ]

An image of running the above code in Factor's REPL

Using build 2166 for the somewhat recent addition of >dec.

Vim, 39 37 28 bytes

D@"O<C-V><C-A>0<ESC>V{g<C-A>:%!rev
v}gJS0<ESC>@"

Try it online!

Tons of bytes saved thanks to some great advice by user41805

Explanation

Step 1: build the range (with summing commands included)
D@"O<C-V><C-A>0<ESC>V{g<C-A>
D                               Delete the input number
 @"            <ESC>            Do that many times:
   O                              Insert a new line above
    <C-V><C-A>                    Write a <C-A> byte (\x01)
              0                   Followed by a 0
                    V{          Select all the lines just written
                      g<C-A>    Turn the numbers into an increasing range            
Step 2: reverse each number

:%!rev (that's it)

This will produce a sequence of lines with the reversed number followed by <C-A>, which is the command to increase a value by the reversed number. Leading 0s actually move the pointer to the beginning of the line, so they are effectively ignored.

Step 3: sum them all up
v}gJS0<ESC>@"
v}               Select all the lines to the end of the file
  gJ             Join them
    S            Replace this line
     0<ESC>         with a 0
           @"    Execute the replaced line as commands

Excel, 59 bytes

=LET(y,COLUMN(A:O),SUM((0&MID(SEQUENCE(A1),y,1))*10^(y-1)))                                               

Explanation

=LET(
y,COLUMN(A:O)                           'y = [1..15] horz.; Excel is accurate to 15 places
SUM((0&MID(SEQUENCE(A1),y,1))*10^(y-1)) 'final result
           SEQUENCE(A1)                 '[1..A1] vertical
    (0&MID(            ,y,1))           'array of individual digits; 0& is to avoid errors on blank cells 
                             *10^(y-1)  'multiply 2nd column by 10, 3rd 100, etc.
SUM(                                  ) 'sum the array

Arn -x, 4 bytes

P▀g³

Try it!

Explained

Unpacked: ~)@.<

    ~    One-range to
      _  Input; implied
  )
@        Map with
  .<     Reverse fix
      Implicit sum

vim, 49 46 bytes

A@q<ESC>0"bDa1<ESC>qqYp<C-a>q@bdk:%s/$/+
:%!rev
xVGJ:%!bc

<ESC> is 0x1b, <C-a> is 0x01, <NL> is 0x0a.

Annotated

A@q<ESC>0"bD  # put {N}@q (run macro q N times) in register b
a1<ESC>       # buffer now contains "1"
qqYp<C-a>q    # store macro that copies and increments the last line in register q
@bd1k         # run {N} times, then delete the extra lines
              # (can't just run {N-1} times, or it won't handle N=1 correctly)
:%s/$/+<NL>   # append + to each line
:%!rev<NL>    # reverse each line
x             # delete leading +
VGJ           # join lines
:%!bc<NL>     # sum

Try it online!

Java (OpenJDK 8), 81 bytes

long g(int n){return n<1?0:new Long(""+new StringBuffer(""+n).reverse())+g(n-1);}

Try it online!

Python 3, 127 bytes

def f(n):
 s=0
 for i in range(1,n+1):
  r=""
  k=str(i)
  for j in range(0,len(k)):
   r=r+k[len(k)-1-j]
  s+=int(r)
 return s

R, 89 75 bytes

sum(scan(t=sapply(1:scan(),function(x)intToUtf8(rev(utf8ToInt(c(x,'')))))))

Try it online!

Thanks to JayCe and Dominic van Essen for the golfs.

x86, 27 bytes

f:	xor esi, esi	; Input ecx
	push 10
	pop ebx
.p:	mov eax, ecx
	xor edi, edi
.q:	xor edx, edx
	div ebx
	imul edi, 10
	add edi, edx
	test eax, eax
	jnz .q
	add esi, edi
	loop .p
	ret		; Output esi

Try it online!

Seem not answered

PowerShell, 43 bytes

1.."$args"-join'+'|% t*y|%{$s=$_+$s}
$s|iex

Try it online!

This script converts a range [1,2,3,4,5,6,7,8,9,10] to the reversed string 01+9+8+7+6+5+4+3+2+1 and evaluates the string

PowerShell, 89 bytes

param($n)function q($x){(($a=$x|% t*y)|%{$a[--$i]})-join''}1..$n|%{$s+=[int](q("$_"))};$s

Try it online!

Vyxal, s, 2 bytes

ƛṘ

Try it Online!

Lua (59 bytes)

function r(u)return u<1 and 0 or(u..""):reverse()+r(u-1)end

Canvas, 7 bytes

R{ŗ±┤]∑

Try it here!

Gol><>, 26 bytes

&IFLPWaSD$|~rlMFa*+|&+&|&h

Try it online!

Explanation

&I                      &h < register init, read "n"; print register (h = n;)
  FLP                  |   < For loop, do "n" times for each x in [1] to [n]
     WaSD$|                < modpow "x" to digits: [123] [3 12] [3 2 1] [3 2 1 0]
           ~rlMFa*+|       < Ditch zero, reverse stack, build the number back
                    &+&    < register += final x

Pyt, 3 bytes

ř₫Ʃ

Try it online!

The characters perform the following operations: range, reverse, sum.

J, 18 Bytes

+/(".@|.@":)"0>:i.

Explanation:

+/                 | Sum of
  (".@|.@":)       | Reverse
            "0     | Each member of
              >:i. | Integers from 1 to n inclusive

Perl 5, 29 27 22 + 1 (-p) = 23 bytes

map$\+=reverse,1..$_}{

Try it online!

Pyth - 7 bytes

sms_`dS

Explanation

sms_`dSQ  Q added implicitly
s         Sum of
 m        map
  s_`d    integer representation of reversal of string representation
          to
      SQ  Range from 1 to input
 

Recursiva, 10 bytes

smBa"I_Va"

Try it online!

Ruby, 38 35 bytes

Similar to the previous Ruby solution, but a full program and also shorter (for less than an hour)!

p (?1..gets).sum{|x|x.reverse.to_i}

Shortened by 3 bytes thanks to user akostadinov

Try it online!

Explanation

p             # Inspect and print. Written as infix notation to avoid using ()
(?1..gets)    # All strings from "1" to "input", based on successive string format
  .sum{|x|    # Enumerable -> Map to value -> Sum by value
      x.reverse.to_i
  }

Gaia, 7 bytes

@…)¦v¦Σ

Try it online!

Range, Reverse, and sum!

@             # push an input. stack: n
 …            # generate range. stack: [0...n-1]
  )¦          # map over the list with increment. stack: [1...n]
    v¦        # map over the list with reverse. stack: [1...n], but all digitally reversed
      Σ       # sum the list; output TOS.

Ruby, 56, 52, 41, 39 bytes

->n{(1..n).sum{|i|i.to_s.reverse.to_i}}

Ruby, 34 bytes (if lambda param is a string)

->n{(1..n).sum{|i|i.reverse.to_i}}

Thanks to @Unihedron for the second solution.

Husk, 7 6 3 bytes

ṁ↔ḣ

Try it online!

Ungolfed/Explanation

  ḣ  -- With the list [1..N] ..
ṁ    -- .. do the following with each element and sum the values:
 ↔   --    reverse it

Java 8, 84 bytes

Lambda from int to long (e.g. IntToLongFunction). Adaptation of coder-croc's solution.

n->{long s=0;while(n>0)s+=new Long(new StringBuffer(""+n--).reverse()+"");return s;}

Try It Online

C++, 146 bytes

#include<string>
using namespace std;int r(int i){int v=0,j=0;for(;j<=i;++j){auto t=to_string(j);reverse(t.begin(),t.end());v+=stoi(t);}return v;}

Excel VBA, 80 78 49 Bytes

Anonymous VBE Immediate Window function that takes input expected type Integer from range [A1] determines all of the values that fall within the range 1:[A1], and outputs the sum of the reversed values to the VBE immediate window

For i=1To[A1]:s=s+Val(StrReverse(Str(i))):Next:?s

MY, 11 bytes

𝕫iC4ǵ'ƒ⇹(Σ↵

Try it online!

How?

MY is capable of something, woohoo!

Japt, 7 5 bytes

-2 bytes thanks to @Shaggy.

õs xw

Try it online!

Explanation

õs xw  Implicit input of integer U
õs     Create range [1,U] and map to strings
    w  Reverse each string
   x   Sum the array, implicitly converting to numbers.

Old solution, 7 bytes

Keeping this since it's a really cool use of z2.

õs z2 x

Try it online!

Explanation

õs z2 x  Implicit input of integer U
õs       Create range [1,U] and map to strings
   z2    Rotate the array 180°, reversing strings
      x  Sum the array, implicitly converting back to integers

Swift 3, 83 68 characters

let f={n in Array(1...n).reduce(0){$0+Int(String("($1)".characters.reversed()))!}}

{(1...$0).reduce(0){$0+Int(String("\($1)".characters.reversed()))!}}

This would probably be shortened by Swift 4's new String and Character handling.

k, 13 bytes

+/.:'|:'$1+!:

Try it online!

         1+!: /create list 1 2 3 ... x
        $     /turn each number into a string
     |:'      /reverse each string
  .:'         /eval each string
+/            /sum

Swift 4, 63 61 bytes

{v in(1...v).reduce(0,{$0+Int(String("\($1)".reversed()))!})}

Try it online!


Explanation

Perl 6, 20 bytes

{(1..$_)».flip.sum}

Test it

Expanded:

{
   ( 1 .. $_ )\  # Range
   ».flip        # flip each value in the Range (possibly in parallel)
   .sum          # sum up the list
}

Javascript,89 77 72 bytes

saved 12 bytes thanks to @Justin Mariner

saved 5 bytes thanks to @Neil

n=>-eval(`-'${[...[...Array(n+1).keys()].join`'-'`].reverse().join``}'`)

Explanation:

[...Array(n+1).keys()] creates an array from 0 to n.

.reverse(‌).join`` reverses every value.

.join`'-'` and eval(`-'{stuff}'`) subtracts the values in order, producing the negative of the answer. - negates the negative to a positive.

Java 8, 97 bytes

IntStream.range(1,n+1).map(i->Integer.valueOf(new StringBuffer(""+i).reverse().toString())).sum()

EDIT

As per the comment of Kevin Cruijssen, I would like to improve my answer.

Java 8, 103 bytes

n->java.util.stream.LongStream.range(1,n+1).map(i->new Long(new StringBuffer(""+i).reverse()+"")).sum()

REXX, 46 bytes

arg n
s=0
do i=1 to n
  s=s+reverse(i)
  end
say s

Röda, 56 41 36 bytes

15 bytes saved thanks to @fergusq

{seq 1,_|parseInteger`$_`[::-1]|sum}

Try it online!

This is an anonymous function that takes an integer from the input stream and outputs an integer to the output stream.

Explanation

{seq 1,_|parseInteger`$_`[::-1]|sum} Anonymous function
 seq 1,_                             Create a sequence 1 2 3 .. input and push each value to the stream
        |                            For each value in the stream:
                     `$_`             Cast it into a string
                         [::-1]       And reverse it
         parseInteger                 And parse the resulting string as an integer, while pushing the value to the stream
                               |sum  Sum all the values in the stream

Common Lisp, 62 bytes

(loop as i to(read)sum(parse-integer(reverse(format()"~d"i))))

Try it online!

APL (Dyalog), 10 7 bytes

3 bytes golfed thanks to @Adám by converting to a tradfn from a train

+/⍎⌽⍕⍳⎕

Try it online!

⎕          Input (example input: 10)
⍳          Range; 1 2 3 4 5 6 7 8 9 10
⍕          Stringify; '1 2 3 4 5 6 7 8 9 10'
⌽          Reverse; '01 9 8 7 6 5 4 3 2 1'
⍎          Evaluate; 1 9 8 7 6 5 4 3 2 1
+/         Sum; 46

Rust, 110 bytes

|x:i64|(1..x+1).map(|v|format!("{}",v).chars().rev().collect::<String>().parse::<i64>().unwrap()).sum::<i64>()

Try it online!

I like Rust, but it is not a very efficient language for golfing!

Python 3, 50 bytes

lambda n:sum(int(str(n)[::-1])for n in range(n))

Quite close to idiomatic Python code, and honestly I don't really see much room for improvement.

Bash + GNU utils, 24

seq $1|rev|paste -sd+|bc

Try it online.

Explanation

seq $1                    # range
      |rev                # reverse (each line)
          |paste -sd+|bc  # sum

CJam, 12 bytes

ri){sW%i}%:+

Try it online!

-1 thanks to Business Cat.

Explanation:

ri){sW%i}%:+
r            Get token
 i           To integer
  )          Increment
   {sW%i}    Push {sW%i}
    s         To string
     W        Push -1
      %       Step
       i      To integer
         %   Map
          :+ Map/reduce by Add

Retina, 41 36 35 bytes

.+
$*
1
1$`¶
1+
$.&
%O^$`.

.+
$*
1

Try it online! Link includes test cases. Edit: Saved 5 bytes thanks to @FryAmTheEggman. Saved 1 byte thanks to @PunPun1000. Explanation:

.+
$*

Convert to unary.

1
1$`¶

Create a range from 1 to n.

1+
$.&

Convert back to decimal.

%O^$`.

Reverse each number.

.+
$*

Convert back to unary.

1

Sum and convert back to decimal.

PHP, 39+1 bytes

while($i++<$argn)$s+=strrev($i);echo$s;

Run as pipe with -nR.

C (gcc), 71 bytes

q(n,x,p){p=n?q(n/10,x*10+n%10):x;}f(w,a,e){for(a=0;w;)a+=q(w--,0);e=a;}

Try it online!

GolfScript, 15 bytes

~),{`-1%~}%{+}*

Try it online!

Explanation:

~),{`-1%~}%{+}* Input all at once
~               Eval
 )              Increment
  ,             Exclusive range
   {     }      Push block
    `            Repr
     -1          -1
       %         Every xth element
        ~        Eval
          %     Map
           { }  Push block
            +    Add
              * Reduce

Python 2, 50 47 bytes

-3 bytes thanks to officialaimm!

lambda n:sum(int(`i+1`[::-1])for i in range(n))

Try it online!

PowerShell, 53 bytes

(1.."$args"|%{-join"$_"["$_".length..0]})-join'+'|iex

Try it online!

Literal translation of the specification. Creates a range with .., reverses each by using string manipulation and -joining them back into a single number, then -joins each number together with a + and piping that to iex (short for Invoke-Expression and similar to eval).

C# (.NET Core), 103 97 bytes

using System.Linq;r=>new int[r+1].Select((_,n)=>int.Parse(string.Concat((n+"").Reverse()))).Sum()

Try it online!

TIO link outputs all the results from 1 to 999, so feel free to check my work.

I expected this to be a bit shorter, but it turns out Reverse() returns an IEnumerable<char> instead of another string so I had to add some extra to turn it back into a string so I could parse it to an int. Maybe there's a shorter way to go from IEnumerable<char> to int correctly.

Of minor note, this also uses the functions Range() Reverse() and Sum() all in order.

-6 bytes thanks to TheLethalCoder

Swift 3, 98 bytes

func f(a:Int)->Int{return (0...a).map{Int(String(String($0).characters.reversed()))!}.reduce(0,+)}

LOGO, 33 bytes

[reduce "+ map "reverse iseq 1 ?]

There is no "Try it online!" link because all online LOGO interpreter does not support template-list.

That is a template-list (equivalent of lambda function in other languages).

Usage:

pr invoke [reduce[?+reverse ?2]iseq 1 ?] 10

(invoke calls the function, pr prints the result)

prints 46.

Explanation:

LOGO stores numbers as words, therefore apply reverse on a number reverse the digits in that number.

reduce "f [a b c d e] (where [a b c d e] is a list) will calculate f(a, f(b, f(c, f(d, e)))). So reduce "+ list will calculate sum of values of list.

Neim, 4 bytes

Δ𝐫)𝐬

Try it online!

Explanation

Δ )              for each element 1 to n (outputs list)
 𝐫               reverse 
   𝐬             sum 

Tcl, 66 bytes

time {incr s [regsub ^0+ [string rev $n] ""];incr n -1} $n
puts $s

Try it online!

MATL, 5 bytes

:VPUs

Try it online!

Pyke, 7 bytes

SF`_b)s

Try it online!

S       -   range(1, input)
 F   )  -  for i in ^:
  `     -     str(i)
   _    -    reversed(^)
    b   -   int(^)
     s  - sum(^)

Charcoal, 14 13 bytes

-1 byte thanks to Carlos Alejo

I∕…·⁰N«⁺ιI⮌Iκ

Try it online! Link is to verbose version.

Explanation

I                  Cast
  ∕     «           Reduce
   …·⁰N            Inclusive range from 0 to input as number
         ⁺          Plus
          ι         i
           I⮌Iκ   Cast(Reverse(Cast(k)))

Brachylog, 4 bytes

⟦↔ᵐ+

Try it online!

Explanation

⟦↔ᵐ+
⟦        range from 0 to input
 ↔ᵐ      map reverse
   +     sum

QBIC, 19 bytes

[:|_F!a$|p=p+!A!}?p

Explanation

[:|     FOR a = 1 to n (read from cmd line)
_F   |      FLIP and assign to A$
  !a$        a string cast of our loop counter
p=p+!A!    increment p with A$ cast back to number
}           NEXT
?p         Print the result

C (gcc), 63 bytes

f(n){int t=0,c=n;for(;c;c/=10)t=t*10+c%10;return n?t+f(n-1):0;}

Try it online!

Pari/GP, 43 bytes

n->sum(i=1,n,fromdigits(Vecrev(digits(i))))

Try it online!

Haskell, 34 bytes

\n->sum$read.reverse.show<$>[1..n]

Simple and straightforward.

Ly, 31 bytes

ns[l1-s]pr[s>lSrJs>l<p<p]>>r&+u

Try it online!

JavaScript (ES6), 42 bytes

f=n=>n&&+[...n+""].reverse().join``+f(n-1)

My favorite doubly-recursive solution is unfortunately 3 bytes longer:

f=n=>n&&+(g=x=>x?x%10+g(x/10|0):"")(n)+f(n-1)

Jelly, 4 bytes

Ṛ€ḌS

Try it online!

How?

Ṛ€ḌS - Link: n
Ṛ€   - reverse for €ach (in implicit range)
  Ḍ  - convert from decimal list (vectorises)
   S - sum

Pyth, 8 6 bytes

-2 bytes thanks to FryAmTheEggman!

sms_`h

Try it online!

Jelly, 5 bytes

RDUḌS

Try it online!

R      ' [R]ange
 D     ' Integer -> [D]ecimal
  U    ' [U]pend (vectorized reverse?)
   Ḍ   ' [Ḍ]ecimal -> Integer
    S  ' [S]um

RProgN 2, 8 bytes

{Ø.in}S+

Explained

{Ø.in}S+
{    }S # Create a stack in range 0 through the implicit input, using the function defined
 Ø.     # Append nothing, stringifying the number
   i    # Reverse the string
    n   # Convert back to a number
       +# Get the sum of the stack, and output implicitly.

Try it online!

05AB1E, 3 bytes

Code

LíO

Uses the 05AB1E encoding. Try it online!

Explanation

L       # Range
 í      # Reverse
  O     # Sum

Python 2, 38 bytes

Can't compute higher terms than the recursion limit:

f=lambda x:x and int(`x`[::-1])+f(x-1)

Try it online!

cQuents, 4 bytes

;\r$

Try it online!

Explanation

       Implicit input n.
;      Series mode. Outputs the sum of the sequence from 1 to n.
 \r$   Each item in the sequence equals:
 \r    String reverse of
   $                     current index (1-based)

Mathematica, 47 bytes

Tr[FromDigits@*Reverse/@IntegerDigits@Range@#]&

Try it online! (in order to work on mathics we need to replace "Tr" with "Total")