+ 1

Write a program that takes an integer number n as input and find out the sum of the following series up to n terms. 1 + 12 + 123

help me

16th Dec 2020, 12:28 PM
Tousif Riyad
Tousif Riyad - avatar
4 Respuestas
+ 3
b=0 s=0 for i in 1..n s=10*s+i b+=s
16th Dec 2020, 12:46 PM
Oma Falk
Oma Falk - avatar
+ 2
Did you try it yourself? If not then try first and ask wherever you got stuck.
16th Dec 2020, 12:43 PM
Kashyap Kumar
Kashyap Kumar - avatar
+ 2
Tousif Riyad , please post your attempt here, it does not matter if the code has issues. Thanks!
16th Dec 2020, 5:48 PM
Lothar
Lothar - avatar
0
help me , i try it but failed
16th Dec 2020, 1:14 PM
Tousif Riyad
Tousif Riyad - avatar