How to multiply numbers of a string by its position in the string

后端 未结 0 2010
后悔当初
后悔当初 2021-02-14 12:49

I am a newby on this. I am trying to multiply every single element of the string below (\'10010010\') by 2 to the power of the position of the element in the string and sum all

相关标签:
回答
  • 消灭零回复
提交回复
热议问题